diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-11-14 22:53:51 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-11-14 22:53:51 +0000 |
commit | 5109159ff96151b3f4dc08e6d9c19ff9d760a3ed (patch) | |
tree | 4e592239a0f93a5f633a67de502fdd2e46e9d584 | |
parent | 3e6edf20cca98c01d73285ac1ce1f61f4e3e6d99 (diff) | |
download | tor-5109159ff96151b3f4dc08e6d9c19ff9d760a3ed.tar.gz tor-5109159ff96151b3f4dc08e6d9c19ff9d760a3ed.zip |
Fix compilation. Duh.
svn:r2876
-rw-r--r-- | src/or/hibernate.c | 2 | ||||
-rw-r--r-- | src/or/main.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/or/hibernate.c b/src/or/hibernate.c index 59990084e3..7667a8a230 100644 --- a/src/or/hibernate.c +++ b/src/or/hibernate.c @@ -260,7 +260,7 @@ accounting_run_housekeeping(time_t now) configure_accounting(now); } if (time_to_record_bandwidth_usage(now)) { - if (record_bandwidth_usage(now)) { + if (accounting_record_bandwidth_usage(now)) { log_fn(LOG_ERR, "Couldn't record bandwidth usage; exiting."); exit(1); } diff --git a/src/or/main.c b/src/or/main.c index eeb97630fb..f07641385e 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -737,7 +737,7 @@ static int do_hup(void) { log_fn(LOG_NOTICE,"Received sighup. Reloading config."); has_completed_circuit=0; - accounting_record_bandwidth_usage(); + accounting_record_bandwidth_usage(time(NULL)); /* first, reload config variables, in case they've changed */ /* no need to provide argc/v, they've been cached inside init_from_config */ @@ -1079,7 +1079,7 @@ void tor_cleanup(void) { if(options->PidFile && options->command == CMD_RUN_TOR) unlink(options->PidFile); crypto_global_cleanup(); - accounting_record_bandwidth_usage(); + accounting_record_bandwidth_usage(time(NULL)); } /** Read/create keys as needed, and echo our fingerprint to stdout. */ |