From cc51d2684ccca56ac16d45f4c96747da65c14cd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Blin?= <sebastien.blin@savoirfairelinux.com> Date: Tue, 5 May 2020 16:36:46 -0400 Subject: [PATCH] proxy: only keep last total stat The rest is not needed. --- tools/dhtproxy_stats.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/dhtproxy_stats.py b/tools/dhtproxy_stats.py index a03ecbec..45625b0e 100644 --- a/tools/dhtproxy_stats.py +++ b/tools/dhtproxy_stats.py @@ -48,10 +48,10 @@ for i in range(80,101): stats['timestamp'] = str(ts) - with open("stats_proxy_" + str(i), "a") as stat_file: - stat_file.write(str(stats)) - stat_file.write('\n') + #with open("stats_proxy_" + str(i), "a") as stat_file: + # stat_file.write(str(stats)) + # stat_file.write('\n') -with open("stats_proxy_total", "a") as stat_file: +with open("stats_proxy_total", "w") as stat_file: stat_file.write(str(stats_total)) stat_file.write('\n') \ No newline at end of file -- GitLab