diff options
author | Mike Perry <mikeperry-git@torproject.org> | 2018-09-14 18:35:44 +0000 |
---|---|---|
committer | Mike Perry <mikeperry-git@torproject.org> | 2018-09-17 22:19:05 +0000 |
commit | 7dc435e6bc4361ab52eac834eac5d30351f4f7b7 (patch) | |
tree | aa18cfab837032d6e8ba674a1b0536ad8da00cc6 /src/or/rephist.h | |
parent | c02f2d9eb45786c552dcc33c102e9964d95f66c1 (diff) | |
download | tor-7dc435e6bc4361ab52eac834eac5d30351f4f7b7.tar.gz tor-7dc435e6bc4361ab52eac834eac5d30351f4f7b7.zip |
Promote rep_hist bw functions to uint64_t.
The rest of rephist uses uint64_t internally. Let's make these take it too,
so we don't have to worry about overflowing size_t on 32 bit systems.
Diffstat (limited to 'src/or/rephist.h')
-rw-r--r-- | src/or/rephist.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/rephist.h b/src/or/rephist.h index ff4810a56d..c1fc7ef1aa 100644 --- a/src/or/rephist.h +++ b/src/or/rephist.h @@ -21,13 +21,13 @@ void rep_hist_note_extend_succeeded(const char *from_name, const char *to_name); void rep_hist_note_extend_failed(const char *from_name, const char *to_name); 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); int rep_hist_bandwidth_assess(void); char *rep_hist_get_bandwidth_lines(void); |