diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-08-21 13:41:15 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-08-21 13:41:53 -0400 |
commit | 71ec90fdc8717f1f55f65756b2849cf6615d5db1 (patch) | |
tree | 8750d9197e311cf3a36e4b5f76616aa2d8633cb6 /src/or/status.c | |
parent | a337d4b7cb9ae7f4e4ec4567b9efd64bbed70298 (diff) | |
download | tor-71ec90fdc8717f1f55f65756b2849cf6615d5db1.tar.gz tor-71ec90fdc8717f1f55f65756b2849cf6615d5db1.zip |
Tweak/cleanup 5526 fix.
Diffstat (limited to 'src/or/status.c')
-rw-r--r-- | src/or/status.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/or/status.c b/src/or/status.c index 2fda471947..6e2206e5e5 100644 --- a/src/or/status.c +++ b/src/or/status.c @@ -17,6 +17,8 @@ #include "hibernate.h" #include "statefile.h" +static void log_accounting(const time_t now, const or_options_t *options); + /** Return the total number of circuits. */ static int count_circuits(void) @@ -133,7 +135,7 @@ log_heartbeat(time_t now) return 0; } -void +static void log_accounting(const time_t now, const or_options_t *options) { or_state_t *state = get_or_state(); @@ -146,9 +148,9 @@ log_accounting(const time_t now, const or_options_t *options) format_local_iso_time(end_buf, interval_end); remaining = secs_to_uptime(interval_end - now); - log_notice(LD_HEARTBEAT, "Heartbeat: " + log_notice(LD_HEARTBEAT, "Heartbeat: Accounting enabled. " "Sent: %s / %s, Received: %s / %s. The " - "current accounting period ends on %s. That's %s left to go.", + "current accounting interval ends on %s, in %s.", acc_sent, acc_max, acc_rcvd, acc_max, end_buf, remaining); tor_free(acc_rcvd); @@ -156,3 +158,4 @@ log_accounting(const time_t now, const or_options_t *options) tor_free(acc_max); tor_free(remaining); } + |