diff options
author | Karsten Loesing <karsten.loesing@gmx.net> | 2011-08-03 13:29:03 +0200 |
---|---|---|
committer | Karsten Loesing <karsten.loesing@gmx.net> | 2011-08-04 21:18:18 +0200 |
commit | 3d3ed853e79d7aea2f41d34813a7fa5a3517dc92 (patch) | |
tree | 0bde1a50664cc042d9533fcc9335cb26e4e0af58 /src/or/rephist.h | |
parent | 07dc46e7fc7275fa1fcd365e34f318aa164fe7f1 (diff) | |
download | tor-3d3ed853e79d7aea2f41d34813a7fa5a3517dc92.tar.gz tor-3d3ed853e79d7aea2f41d34813a7fa5a3517dc92.zip |
Add unit tests for buffer-stats.
Now that formatting the buffer-stats string is separate from writing
it to disk, we can also decouple the logic to extract stats from
circuits and finally write some unit tests for the history code.
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 13dee1529b..e590659441 100644 --- a/src/or/rephist.h +++ b/src/or/rephist.h @@ -77,6 +77,8 @@ void rep_hist_buffer_stats_add_circ(circuit_t *circ, time_t end_of_interval); time_t rep_hist_buffer_stats_write(time_t now); void rep_hist_buffer_stats_term(void); +void rep_hist_add_buffer_stats(double mean_num_cells_in_queue, + double mean_time_cells_in_queue, uint32_t processed_cells); char *rep_hist_format_buffer_stats(time_t now); void rep_hist_reset_buffer_stats(time_t now); |