diff options
author | teor <teor@torproject.org> | 2019-03-14 06:41:14 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2019-03-14 06:41:14 +1000 |
commit | 5606cfae472a4e49d07bb14f4dfa336a8ded3930 (patch) | |
tree | 47689e7a004256bb27ba5df714447d58982fd823 /src/or/rephist.h | |
parent | 155b0f5521b12c17d7e5b500c6aa7ed20fcacc12 (diff) | |
parent | e91b999cf2dfbb250cbf6c674ea01d7cee518092 (diff) | |
download | tor-5606cfae472a4e49d07bb14f4dfa336a8ded3930.tar.gz tor-5606cfae472a4e49d07bb14f4dfa336a8ded3930.zip |
Merge remote-tracking branch 'tor-github/pr/771' into maint-0.3.4
Diffstat (limited to 'src/or/rephist.h')
-rw-r--r-- | src/or/rephist.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/or/rephist.h b/src/or/rephist.h index 3e64a3de40..9ef49d19c0 100644 --- a/src/or/rephist.h +++ b/src/or/rephist.h @@ -14,13 +14,13 @@ void rep_hist_init(void); void rep_hist_dump_stats(time_t now, int severity); -void rep_hist_note_bytes_read(size_t num_bytes, time_t when); -void rep_hist_note_bytes_written(size_t num_bytes, time_t when); +void rep_hist_note_bytes_read(uint64_t num_bytes, time_t when); +void rep_hist_note_bytes_written(uint64_t num_bytes, time_t when); void rep_hist_make_router_pessimal(const char *id, time_t when); -void rep_hist_note_dir_bytes_read(size_t num_bytes, time_t when); -void rep_hist_note_dir_bytes_written(size_t num_bytes, time_t when); +void rep_hist_note_dir_bytes_read(uint64_t num_bytes, time_t when); +void rep_hist_note_dir_bytes_written(uint64_t num_bytes, time_t when); MOCK_DECL(int, rep_hist_bandwidth_assess, (void)); char *rep_hist_get_bandwidth_lines(void); @@ -109,6 +109,8 @@ 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]; +typedef struct bw_array_t bw_array_t; +extern bw_array_t *write_array; #endif /** |