diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-10-07 20:15:56 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-10-07 20:15:56 +0000 |
commit | b7bddcac7580433c6c07cc0c4c33a8cdbafc4717 (patch) | |
tree | 4f11db5ea93d7661133a4afcdeabed392a66f517 /src/or/main.c | |
parent | ce3162d03510c9e87c508d4b854757bb501f8461 (diff) | |
download | tor-b7bddcac7580433c6c07cc0c4c33a8cdbafc4717.tar tor-b7bddcac7580433c6c07cc0c4c33a8cdbafc4717.tar.gz |
Windows requires a different cast uint64_t format
svn:r2424
Diffstat (limited to 'src/or/main.c')
-rw-r--r-- | src/or/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/main.c b/src/or/main.c index 17df97c70..e16e72b89 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -975,11 +975,13 @@ static void dumpstats(int severity) { if (stats_n_seconds_uptime) log(severity, #ifdef MS_WINDOWS - "Average bandwidth used: %I64u/%ld = %d bytes/sec", + "Average bandwidth used: %I64u/%ld = %d bytes/sec", + stats_n_bytes_read, #else "Average bandwidth used: %llu/%ld = %d bytes/sec", + (long long unsigned int)stats_n_bytes_read, #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)); rep_hist_dump_stats(now,severity); |