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:
Nick Mathewson 2020-07-10 09:50:04 -04:00
parent dbdf8bebde
commit 0f60a1d33c

View File

@ -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,