summaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-12-31 08:09:26 +0000
committerRoger Dingledine <arma@torproject.org>2005-12-31 08:09:26 +0000
commite9e7dc176ce5cfd41c62d1a18bb55e11d4c98fc0 (patch)
treec1e39f329b3e9038b20d45a14a125ffef27d9392 /src/or/main.c
parentad82fdab5e84f7e2a5ae995b51fd38a4aa8c2409 (diff)
downloadtor-e9e7dc176ce5cfd41c62d1a18bb55e11d4c98fc0.tar.gz
tor-e9e7dc176ce5cfd41c62d1a18bb55e11d4c98fc0.zip
Some tor servers process billions of cells in a matter of days.
These statistics need to be uint64_t's. svn:r5686
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 31d9a8f000..90b8bea592 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -1298,20 +1298,20 @@ dumpstats(int severity)
* using this conn */
}
log(severity, LD_NET,
- "Cells processed: %10lu padding\n"
- " %10lu create\n"
- " %10lu created\n"
- " %10lu relay\n"
- " (%10lu relayed)\n"
- " (%10lu delivered)\n"
- " %10lu destroy",
- stats_n_padding_cells_processed,
- stats_n_create_cells_processed,
- stats_n_created_cells_processed,
- stats_n_relay_cells_processed,
- stats_n_relay_cells_relayed,
- stats_n_relay_cells_delivered,
- stats_n_destroy_cells_processed);
+ "Cells processed: "U64_FORMAT" padding\n"
+ " "U64_FORMAT" create\n"
+ " "U64_FORMAT" created\n"
+ " "U64_FORMAT" relay\n"
+ " ("U64_FORMAT" relayed)\n"
+ " ("U64_FORMAT" delivered)\n"
+ " "U64_FORMAT" destroy",
+ U64_PRINTF_ARG(stats_n_padding_cells_processed),
+ U64_PRINTF_ARG(stats_n_create_cells_processed),
+ U64_PRINTF_ARG(stats_n_created_cells_processed),
+ U64_PRINTF_ARG(stats_n_relay_cells_processed),
+ U64_PRINTF_ARG(stats_n_relay_cells_relayed),
+ U64_PRINTF_ARG(stats_n_relay_cells_delivered),
+ U64_PRINTF_ARG(stats_n_destroy_cells_processed));
if (stats_n_data_cells_packaged)
log(severity,LD_NET,"Average packaged cell fullness: %2.3f%%",
100*(((double)stats_n_data_bytes_packaged) /