]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
compile again on win32 (i think)
authorRoger Dingledine <arma@torproject.org>
Mon, 9 Aug 2004 23:45:11 +0000 (23:45 +0000)
committerRoger Dingledine <arma@torproject.org>
Mon, 9 Aug 2004 23:45:11 +0000 (23:45 +0000)
svn:r2222

src/or/main.c

index 8724f53af0bf502609459bd0723ca5eab061267d..37e71a1f919c30fb0a95df4bed2387e947542489 100644 (file)
@@ -963,9 +963,14 @@ static void dumpstats(int severity) {
                 (stats_n_data_cells_received*RELAY_PAYLOAD_SIZE)) );
 
   if (stats_n_seconds_uptime)
-    log(severity,"Average bandwidth used: %llu/%ld = %d bytes/sec",
-           (unsigned long long) stats_n_bytes_read, stats_n_seconds_uptime,
-           (int) (stats_n_bytes_read/stats_n_seconds_uptime));
+    log(severity,
+#ifdef MS_WINDOWS
+        "Average bandwidth used: %I64u/%ld = %d bytes/sec",
+#else
+        "Average bandwidth used: %llu/%ld = %d bytes/sec",
+#endif
+        stats_n_bytes_read, stats_n_seconds_uptime,
+        (int) (stats_n_bytes_read/stats_n_seconds_uptime));
 
   rep_hist_dump_stats(now,severity);
   rend_service_dump_stats(severity);