diff options
author | George Kadianakis <desnacked@riseup.net> | 2020-11-03 17:42:36 +0200 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2020-11-03 19:15:01 +0200 |
commit | 810183aaf17aa23eb68260038345cb540a856f75 (patch) | |
tree | ae8835d6486da579a8b4f094320c44d591f3436f /src/feature/stats | |
parent | 7ae576edaf94159c824900ef09bee5bea99c8255 (diff) | |
download | tor-810183aaf17aa23eb68260038345cb540a856f75.tar.gz tor-810183aaf17aa23eb68260038345cb540a856f75.zip |
Improve string formatting in rep_hist_format_hs_stats().
Diffstat (limited to 'src/feature/stats')
-rw-r--r-- | src/feature/stats/rephist.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/feature/stats/rephist.c b/src/feature/stats/rephist.c index 7b4bc97bda..e0d8669cba 100644 --- a/src/feature/stats/rephist.c +++ b/src/feature/stats/rephist.c @@ -2006,17 +2006,17 @@ rep_hist_format_hs_stats(time_t now, bool is_v3) ONIONS_SEEN_EPSILON); format_iso_time(t, now); - tor_asprintf(&hs_stats_string, "%s %s (%d s)\n" + tor_asprintf(&hs_stats_string, "%s %s (%ld s)\n" "%s %"PRId64" delta_f=%d epsilon=%.2f bin_size=%d\n" "%s %"PRId64" delta_f=%d epsilon=%.2f bin_size=%d\n", is_v3 ? "hidserv-v3-stats-end" : "hidserv-stats-end", - t, (unsigned) (now - start_of_hs_stats_interval), + t, now - start_of_hs_stats_interval, is_v3 ? "hidserv-rend-v3-relayed-cells" : "hidserv-rend-relayed-cells", - (obfuscated_cells_seen), REND_CELLS_DELTA_F, + obfuscated_cells_seen, REND_CELLS_DELTA_F, REND_CELLS_EPSILON, REND_CELLS_BIN_SIZE, is_v3 ? "hidserv-dir-v3-onions-seen" :"hidserv-dir-onions-seen", - (obfuscated_onions_seen), ONIONS_SEEN_DELTA_F, + obfuscated_onions_seen, ONIONS_SEEN_DELTA_F, ONIONS_SEEN_EPSILON, ONIONS_SEEN_BIN_SIZE); return hs_stats_string; |