diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-04-17 16:19:45 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-04-17 18:06:46 -0400 |
commit | 780d1b44cf24ad8ef321b99d8fc591f110456f98 (patch) | |
tree | 3a412cdbbafba942afbc265a9a99b9c33bd23b7c /src/or/main.h | |
parent | a2acb9b9e9f1a6e21625b2d77c2e7df4e35f3599 (diff) | |
download | tor-780d1b44cf24ad8ef321b99d8fc591f110456f98.tar.gz tor-780d1b44cf24ad8ef321b99d8fc591f110456f98.zip |
Move responsibility for recording read/written bytes
Previously this was done as part of the refill callback, but there's
no real reason to do it like that. Since we're trying to remove the
refill callback completely, we can do this work as part of
record_num_bytes_transferred_impl(), which already does quite a lot
of this.
Diffstat (limited to 'src/or/main.h')
-rw-r--r-- | src/or/main.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/main.h b/src/or/main.h index e50d14d4d9..0d2681bda8 100644 --- a/src/or/main.h +++ b/src/or/main.h @@ -28,6 +28,7 @@ int connection_is_on_closeable_list(connection_t *conn); MOCK_DECL(smartlist_t *, get_connection_array, (void)); MOCK_DECL(uint64_t,get_bytes_read,(void)); MOCK_DECL(uint64_t,get_bytes_written,(void)); +void stats_increment_bytes_read_and_written(uint64_t r, uint64_t w); /** Bitmask for events that we can turn on and off with * connection_watch_events. */ |