From d37850bb98abe0ae35a35c648392f91fdfe019a4 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Tue, 13 Jul 2004 16:58:01 +0000 Subject: only count bytes transmitted to/from non-local IPs svn:r2041 --- src/or/rephist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/or/rephist.c') 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 when. * * when can go back to time, but it's safe to ignore calls - * earlier that the latest when you've heard of. + * earlier than the latest when 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. */ -- cgit v1.2.3