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/hibernate.c | |
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/hibernate.c')
-rw-r--r-- | src/or/hibernate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/hibernate.c b/src/or/hibernate.c index 7261cf8002..9fed338555 100644 --- a/src/or/hibernate.c +++ b/src/or/hibernate.c @@ -297,7 +297,7 @@ accounting_get_end_time,(void)) return interval_end_time; } -/** Called from main.c to tell us that <b>seconds</b> seconds have +/** Called from connection.c to tell us that <b>seconds</b> seconds have * passed, <b>n_read</b> bytes have been read, and <b>n_written</b> * bytes have been written. */ void |