diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-09-20 14:41:44 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-09-20 14:41:44 -0400 |
commit | 813019cc57844876fcc63d87510b8efbcbf80563 (patch) | |
tree | 9e6c751dc96ef2f6889fd441e5ec6096ccaae2dc /src/feature/stats/rephist.h | |
parent | a406255cf395b053d6216df4252ad1320ab73a54 (diff) | |
parent | 1da9741bca8b16e8c5f15d91f646ee1ea4985750 (diff) | |
download | tor-813019cc57844876fcc63d87510b8efbcbf80563.tar.gz tor-813019cc57844876fcc63d87510b8efbcbf80563.zip |
Merge branch 'bug23512-v4-029-fixes'
Diffstat (limited to 'src/feature/stats/rephist.h')
-rw-r--r-- | src/feature/stats/rephist.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/feature/stats/rephist.h b/src/feature/stats/rephist.h index e17a722489..842184f815 100644 --- a/src/feature/stats/rephist.h +++ b/src/feature/stats/rephist.h @@ -109,8 +109,14 @@ extern uint32_t rephist_total_num; #ifdef TOR_UNIT_TESTS extern int onion_handshakes_requested[MAX_ONION_HANDSHAKE_TYPE+1]; extern int onion_handshakes_assigned[MAX_ONION_HANDSHAKE_TYPE+1]; +extern struct bw_array_t *write_array; +#endif + +#ifdef REPHIST_PRIVATE typedef struct bw_array_t bw_array_t; -extern bw_array_t *write_array; +STATIC uint64_t find_largest_max(bw_array_t *b); +STATIC void commit_max(bw_array_t *b); +STATIC void advance_obs(bw_array_t *b); #endif /** @@ -139,4 +145,3 @@ void rep_hist_prep_published_padding_counts(time_t now); void rep_hist_padding_count_timers(uint64_t num_timers); #endif /* !defined(TOR_REPHIST_H) */ - |