瀏覽代碼

make "%llu" less likely to warn on weird platforms

svn:r2209
Roger Dingledine 20 年之前
父節點
當前提交
7068dd8e87
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/or/main.c

+ 1 - 1
src/or/main.c

@@ -965,7 +965,7 @@ static void dumpstats(int severity) {
 
   if (stats_n_seconds_uptime)
     log(severity,"Average bandwidth used: %llu/%ld = %d bytes/sec",
-           stats_n_bytes_read, stats_n_seconds_uptime,
+           (unsigned long long) stats_n_bytes_read, stats_n_seconds_uptime,
            (int) (stats_n_bytes_read/stats_n_seconds_uptime));
 
   rep_hist_dump_stats(now,severity);