diff options
author | Peter Retzlaff <peter.retzlaff@student.hpi.uni-potsdam.de> | 2013-06-12 10:51:39 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-08-21 13:26:57 -0400 |
commit | a337d4b7cb9ae7f4e4ec4567b9efd64bbed70298 (patch) | |
tree | 43fb710e70706a1de7b02258b1e1170162dee355 /src/or/hibernate.c | |
parent | 28485d33ca64ee3989f6993a1c30f265be9e324f (diff) | |
download | tor-a337d4b7cb9ae7f4e4ec4567b9efd64bbed70298.tar.gz tor-a337d4b7cb9ae7f4e4ec4567b9efd64bbed70298.zip |
Print accounting information in heartbeat messages.
Implements ticket 5526.
Diffstat (limited to 'src/or/hibernate.c')
-rw-r--r-- | src/or/hibernate.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/hibernate.c b/src/or/hibernate.c index 22c0f253da..712a6959a6 100644 --- a/src/or/hibernate.c +++ b/src/or/hibernate.c @@ -255,6 +255,12 @@ accounting_get_interval_length(void) return (int)(interval_end_time - interval_start_time); } +time_t +accounting_get_end_time(void) +{ + return interval_end_time; +} + /** Called from main.c to tell us that <b>seconds</b> seconds have * passed, <b>n_read</b> bytes have been read, and <b>n_written</b> * bytes have been written. */ |