Skip to content

Commit

Permalink
proxy: only keep last total stat
Browse files Browse the repository at this point in the history
The rest is not needed.
  • Loading branch information
Sébastien Blin authored and aberaud committed May 5, 2020
1 parent 28b5893 commit cc51d26
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/dhtproxy_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@

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')

0 comments on commit cc51d26

Please sign in to comment.