[or-cvs] compile again on win32 (i think)

Roger Dingledine arma at seul.org
Mon Aug 9 23:45:13 UTC 2004


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or

Modified Files:
	main.c 
Log Message:
compile again on win32 (i think)


Index: main.c
===================================================================
RCS file: /home/or/cvsroot/src/or/main.c,v
retrieving revision 1.316
retrieving revision 1.317
diff -u -d -r1.316 -r1.317
--- main.c	9 Aug 2004 07:41:32 -0000	1.316
+++ main.c	9 Aug 2004 23:45:11 -0000	1.317
@@ -963,9 +963,14 @@
                 (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);



More information about the tor-commits mailing list