mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-14 07:03:44 +01:00
Windows requires a different cast uint64_t format
svn:r2424
This commit is contained in:
parent
ce3162d035
commit
b7bddcac75
@ -976,10 +976,12 @@ static void dumpstats(int severity) {
|
|||||||
log(severity,
|
log(severity,
|
||||||
#ifdef MS_WINDOWS
|
#ifdef MS_WINDOWS
|
||||||
"Average bandwidth used: %I64u/%ld = %d bytes/sec",
|
"Average bandwidth used: %I64u/%ld = %d bytes/sec",
|
||||||
|
stats_n_bytes_read,
|
||||||
#else
|
#else
|
||||||
"Average bandwidth used: %llu/%ld = %d bytes/sec",
|
"Average bandwidth used: %llu/%ld = %d bytes/sec",
|
||||||
|
(long long unsigned int)stats_n_bytes_read,
|
||||||
#endif
|
#endif
|
||||||
(long long unsigned int)stats_n_bytes_read, stats_n_seconds_uptime,
|
stats_n_seconds_uptime,
|
||||||
(int) (stats_n_bytes_read/stats_n_seconds_uptime));
|
(int) (stats_n_bytes_read/stats_n_seconds_uptime));
|
||||||
|
|
||||||
rep_hist_dump_stats(now,severity);
|
rep_hist_dump_stats(now,severity);
|
||||||
|
Loading…
Reference in New Issue
Block a user