diff options
author | Roger Dingledine <arma@torproject.org> | 2004-07-13 16:58:01 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-07-13 16:58:01 +0000 |
commit | d37850bb98abe0ae35a35c648392f91fdfe019a4 (patch) | |
tree | 279499b6239e2f29f654be7ecd0fa62f3dc721ae /src/or/rephist.c | |
parent | 7e344f191aeb2de6ffb9509e0508ce8647764159 (diff) | |
download | tor-d37850bb98abe0ae35a35c648392f91fdfe019a4.tar tor-d37850bb98abe0ae35a35c648392f91fdfe019a4.tar.gz |
only count bytes transmitted to/from non-local IPs
svn:r2041
Diffstat (limited to 'src/or/rephist.c')
-rw-r--r-- | src/or/rephist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/rephist.c b/src/or/rephist.c index 0e1471421..fb282f469 100644 --- a/src/or/rephist.c +++ b/src/or/rephist.c @@ -295,7 +295,7 @@ void write_rep_history(const char *filename) * Add num_bytes to the current running total for <b>when</b>. * * <b>when</b> can go back to time, but it's safe to ignore calls - * earlier that the latest <b>when</b> you've heard of. + * earlier than the latest <b>when</b> you've heard of. */ void rep_hist_note_bytes_written(int num_bytes, time_t when) { /* Maybe a circular array for recent seconds, and step to a new point @@ -327,7 +327,7 @@ int rep_hist_bandwidth_assess(time_t when) { /* To get a handle on space complexity, I promise I will call this * function at most every options.DirFetchPostPeriod seconds. So in * rep_hist_note_bytes_foo() above, you could keep a running max sum - * for the current period, and when the period ends you can tuck it away + * for the current period, and when the period ends you can tuck its max away * in a circular array of more managable size. We lose a bit of precision, * but this is all guesswork anyway. */ |