Fix compilation. Duh.

svn:r2876
This commit is contained in:
Nick Mathewson 2004-11-14 22:53:51 +00:00
parent 3e6edf20cc
commit 5109159ff9
2 changed files with 3 additions and 3 deletions

View File

@ -260,7 +260,7 @@ accounting_run_housekeeping(time_t now)
configure_accounting(now); configure_accounting(now);
} }
if (time_to_record_bandwidth_usage(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."); log_fn(LOG_ERR, "Couldn't record bandwidth usage; exiting.");
exit(1); exit(1);
} }

View File

@ -737,7 +737,7 @@ static int do_hup(void) {
log_fn(LOG_NOTICE,"Received sighup. Reloading config."); log_fn(LOG_NOTICE,"Received sighup. Reloading config.");
has_completed_circuit=0; has_completed_circuit=0;
accounting_record_bandwidth_usage(); accounting_record_bandwidth_usage(time(NULL));
/* first, reload config variables, in case they've changed */ /* first, reload config variables, in case they've changed */
/* no need to provide argc/v, they've been cached inside init_from_config */ /* 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) if(options->PidFile && options->command == CMD_RUN_TOR)
unlink(options->PidFile); unlink(options->PidFile);
crypto_global_cleanup(); crypto_global_cleanup();
accounting_record_bandwidth_usage(); accounting_record_bandwidth_usage(time(NULL));
} }
/** Read/create keys as needed, and echo our fingerprint to stdout. */ /** Read/create keys as needed, and echo our fingerprint to stdout. */