]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix compilation. Duh.
authorNick Mathewson <nickm@torproject.org>
Sun, 14 Nov 2004 22:53:51 +0000 (22:53 +0000)
committerNick Mathewson <nickm@torproject.org>
Sun, 14 Nov 2004 22:53:51 +0000 (22:53 +0000)
svn:r2876

src/or/hibernate.c
src/or/main.c

index 59990084e3d43bb6fcce451e04ea8fa1a3d1f10d..7667a8a2308257b944bc3cd35f96a9211c857a82 100644 (file)
@@ -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);
     }
index eeb97630fb554295e41a913d8b79e7f5b42c1931..f07641385ec9b71ae8e31ece96d81b29980e7023 100644 (file)
@@ -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. */