summaryrefslogtreecommitdiff
path: root/src/or/rephist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-08-30 21:12:34 +0000
committerNick Mathewson <nickm@torproject.org>2007-08-30 21:12:34 +0000
commit5da6321b762d090b9c4917de9c55f284c4881d0c (patch)
tree857c9106b1238f4c9b8e7f1a7930a26c28190401 /src/or/rephist.c
parentca24362cf86bfdb5d13e73f65d551d389b4ab859 (diff)
downloadtor-5da6321b762d090b9c4917de9c55f284c4881d0c.tar.gz
tor-5da6321b762d090b9c4917de9c55f284c4881d0c.zip
r14859@catbus: nickm | 2007-08-30 17:10:15 -0400
0-pad minutes and seconds when displaying weighted mtbf in info logs. svn:r11324
Diffstat (limited to 'src/or/rephist.c')
-rw-r--r--src/or/rephist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/rephist.c b/src/or/rephist.c
index 72a7af5834..e7110f7de6 100644
--- a/src/or/rephist.c
+++ b/src/or/rephist.c
@@ -469,7 +469,7 @@ rep_hist_dump_stats(time_t now, int severity)
}
log(severity, LD_GENERAL,
"OR %s [%s]: %ld/%ld good connections; uptime %ld/%ld sec (%.2f%%); "
- "wmtbf %lu:%lu:%lu",
+ "wmtbf %lu:%02lu:%02lu",
name1, hexdigest1,
or_history->n_conn_ok, or_history->n_conn_fail+or_history->n_conn_ok,
upt, upt+downt, uptime*100.0,