aboutsummaryrefslogtreecommitdiff
path: root/src/feature/stats/rephist.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2020-11-04 15:28:23 +0200
committerGeorge Kadianakis <desnacked@riseup.net>2020-11-23 13:35:26 +0200
commit0bd12cfe99f16f1e3130e8866e15ff703cc4b828 (patch)
tree549c7a2d17c5c45a851a7ebcf632798138c9b5a1 /src/feature/stats/rephist.c
parentbff3c6f48db0144e8b2c5646daba867300c08ad3 (diff)
downloadtor-0bd12cfe99f16f1e3130e8866e15ff703cc4b828.tar.gz
tor-0bd12cfe99f16f1e3130e8866e15ff703cc4b828.zip
Revert HSv3 stats string formatting to its old %u self.
The rest of rephist.c is doing the same kind of unsigned casting. For example see rep_hist_format_buffer_stats() and rep_hist_format_exit_stats(). The previous switch to %ld made Appveyor fail: https://ci.appveyor.com/project/torproject/tor/builds/36118502
Diffstat (limited to 'src/feature/stats/rephist.c')
-rw-r--r--src/feature/stats/rephist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/feature/stats/rephist.c b/src/feature/stats/rephist.c
index 59f38fe603..f8d7887e65 100644
--- a/src/feature/stats/rephist.c
+++ b/src/feature/stats/rephist.c
@@ -2009,11 +2009,11 @@ 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 (%ld s)\n"
+ tor_asprintf(&hs_stats_string, "%s %s (%u 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, now - start_of_hs_stats_interval,
+ t, (unsigned) (now - start_of_hs_stats_interval),
is_v3 ?
"hidserv-rend-v3-relayed-cells" : "hidserv-rend-relayed-cells",
obfuscated_cells_seen, REND_CELLS_DELTA_F,