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);
}
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 */
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. */