]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Windows requires a different cast uint64_t format
authorNick Mathewson <nickm@torproject.org>
Thu, 7 Oct 2004 20:15:56 +0000 (20:15 +0000)
committerNick Mathewson <nickm@torproject.org>
Thu, 7 Oct 2004 20:15:56 +0000 (20:15 +0000)
svn:r2424

src/or/main.c

index 17df97c709145d92ebe999085765fa0dd4c48c01..e16e72b898f047cd372f83dab2b447f14f62ecfb 100644 (file)
@@ -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);