diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-06-05 10:30:50 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-06-05 10:30:50 -0400 |
commit | b4bd4964eba5b0dae811a5c28c664b8f78a0672c (patch) | |
tree | 724c575c34c06ed78f4642b2fc2ecb7bde7f4d31 /src/or/rephist.c | |
parent | 981e896dd2eaf69798bb503c271306ee779dd6d2 (diff) | |
parent | 0bec9f320b81a85ba3596e9780b1cf7c770dfb31 (diff) | |
download | tor-b4bd4964eba5b0dae811a5c28c664b8f78a0672c.tar.gz tor-b4bd4964eba5b0dae811a5c28c664b8f78a0672c.zip |
Merge remote-tracking branch 'public/format_doubles'
Conflicts:
src/or/geoip.c
Diffstat (limited to 'src/or/rephist.c')
-rw-r--r-- | src/or/rephist.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/rephist.c b/src/or/rephist.c index 02d38e4507..ec5b84692e 100644 --- a/src/or/rephist.c +++ b/src/or/rephist.c @@ -839,7 +839,7 @@ rep_hist_record_mtbf_data(time_t now, int missing_means_down) format_iso_time(time_buf, hist->start_of_run); t = time_buf; } - PRINTF((f, "+MTBF %lu %.5lf%s%s\n", + PRINTF((f, "+MTBF %lu %.5f%s%s\n", hist->weighted_run_length, hist->total_run_weights, t ? " S=" : "", t ? t : "")); t = NULL; @@ -889,10 +889,10 @@ rep_hist_format_router_status(or_history_t *hist, time_t now) tor_asprintf(&cp, "%s%s%s" "%s%s%s" - "wfu %0.3lf\n" + "wfu %0.3f\n" " weighted-time %lu\n" " weighted-uptime %lu\n" - "mtbf %0.1lf\n" + "mtbf %0.1f\n" " weighted-run-length %lu\n" " total-run-weights %f\n", up?"uptime-started ":"", up?sor_buf:"", up?" UTC\n":"", |