diff options
author | Karsten Loesing <karsten.loesing@gmx.net> | 2010-08-18 15:44:02 +0200 |
---|---|---|
committer | Karsten Loesing <karsten.loesing@gmx.net> | 2010-12-03 16:47:53 +0100 |
commit | 91fec693e01cf5ef77fddca48ed4c0ba4fcd0d1a (patch) | |
tree | 4d0f8facaffa6b414a3d003a3626d269b27d0546 /src/or/rephist.h | |
parent | 076a688d76f7acb3c2efc0efef6bdb621de9fefd (diff) | |
download | tor-91fec693e01cf5ef77fddca48ed4c0ba4fcd0d1a.tar.gz tor-91fec693e01cf5ef77fddca48ed4c0ba4fcd0d1a.zip |
Refactor conn stats and add unit tests.
Diffstat (limited to 'src/or/rephist.h')
-rw-r--r-- | src/or/rephist.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/rephist.h b/src/or/rephist.h index efc8531ac0..6b600a2faa 100644 --- a/src/or/rephist.h +++ b/src/or/rephist.h @@ -79,6 +79,8 @@ void rep_hist_buffer_stats_term(void); void rep_hist_conn_stats_init(time_t now); void rep_hist_note_or_conn_bytes(uint64_t conn_id, size_t num_read, size_t num_written, time_t when); +void rep_hist_reset_conn_stats(time_t now); +char *rep_hist_format_conn_stats(time_t now); time_t rep_hist_conn_stats_write(time_t now); void rep_hist_conn_stats_term(void); |