diff options
Diffstat (limited to 'src/or/main.c')
-rw-r--r-- | src/or/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/main.c b/src/or/main.c index d1df11af50..b12effce1f 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -2426,8 +2426,10 @@ refill_callback(periodic_timer_t *timer, void *arg) if (accounting_is_enabled(options) && milliseconds_elapsed >= 0) accounting_add_bytes(bytes_read, bytes_written, seconds_rolled_over); - if (milliseconds_elapsed > 0) - connection_bucket_refill(milliseconds_elapsed, (time_t)now.tv_sec); + if (milliseconds_elapsed > 0) { + connection_bucket_refill(milliseconds_elapsed, (time_t)now.tv_sec, + monotime_coarse_get_stamp()); + } stats_prev_global_read_bucket = global_read_bucket; stats_prev_global_write_bucket = global_write_bucket; |