[or-cvs] Fix compilation. Duh.
Nick Mathewson
nickm at seul.org
Sun Nov 14 22:53:53 UTC 2004
Update of /home/or/cvsroot/tor/src/or
In directory moria.mit.edu:/tmp/cvs-serv20914/src/or
Modified Files:
main.c hibernate.c
Log Message:
Fix compilation. Duh.
Index: main.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/main.c,v
retrieving revision 1.374
retrieving revision 1.375
diff -u -d -r1.374 -r1.375
--- main.c 14 Nov 2004 22:21:22 -0000 1.374
+++ main.c 14 Nov 2004 22:53:50 -0000 1.375
@@ -737,7 +737,7 @@
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 @@
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. */
Index: hibernate.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/hibernate.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- hibernate.c 14 Nov 2004 22:21:22 -0000 1.19
+++ hibernate.c 14 Nov 2004 22:53:51 -0000 1.20
@@ -260,7 +260,7 @@
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);
}
More information about the tor-commits
mailing list