mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
connstats: use correct formatter for uint32_t.
We have had no reports of negative counts here, so it is probably safe not to backport this.
This commit is contained in:
parent
dbdf8bebde
commit
0f60a1d33c
@ -232,8 +232,10 @@ conn_stats_format(time_t now)
|
||||
|
||||
format_iso_time(written_at, now);
|
||||
tor_asprintf(&result,
|
||||
"conn-bi-direct %s (%d s) %d,%d,%d,%d\n"
|
||||
"ipv6-conn-bi-direct %s (%d s) %d,%d,%d,%d\n",
|
||||
"conn-bi-direct %s (%d s) "
|
||||
"%"PRIu32",%"PRIu32",%"PRIu32",%"PRIu32"\n"
|
||||
"ipv6-conn-bi-direct %s (%d s) "
|
||||
"%"PRIu32",%"PRIu32",%"PRIu32",%"PRIu32"\n",
|
||||
written_at,
|
||||
(unsigned) (now - start_of_conn_stats_interval),
|
||||
counts.below_threshold,
|
||||
|
Loading…
Reference in New Issue
Block a user