summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-08-09 23:45:11 +0000
committerRoger Dingledine <arma@torproject.org>2004-08-09 23:45:11 +0000
commitdda2e44222b926fb751f05ae5f8a53a9d3318c76 (patch)
treec1a5c7646e0fa24428820fe248e9c2b53cf5b058
parent1e1a2be4305261b2fe4d46dbd7a99c3da7b8f003 (diff)
downloadtor-dda2e44222b926fb751f05ae5f8a53a9d3318c76.tar.gz
tor-dda2e44222b926fb751f05ae5f8a53a9d3318c76.zip
compile again on win32 (i think)
svn:r2222
-rw-r--r--src/or/main.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 8724f53af0..37e71a1f91 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -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);