[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Windows requires a different cast uint64_t format
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv15953/src/or
Modified Files:
main.c
Log Message:
Windows requires a different cast uint64_t format
Index: main.c
===================================================================
RCS file: /home/or/cvsroot/src/or/main.c,v
retrieving revision 1.331
retrieving revision 1.332
diff -u -d -r1.331 -r1.332
--- main.c 1 Oct 2004 21:02:12 -0000 1.331
+++ main.c 7 Oct 2004 20:15:56 -0000 1.332
@@ -975,11 +975,13 @@
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);