redundant
authorChristian Grothoff <christian@grothoff.org>
Fri, 14 Jan 2011 19:30:05 +0000 (19:30 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 14 Jan 2011 19:30:05 +0000 (19:30 +0000)
src/util/bandwidth.c
src/util/scheduler.c

index 5da3e9739d1bb0e5bbe69971fcab374f95afbf94..6f25abfd523bc23870c59a14a1734adf7c9e6162 100644 (file)
@@ -185,7 +185,6 @@ update_tracker (struct GNUNET_BANDWIDTH_Tracker *av)
       max_carry = av->available_bytes_per_s__ * av->max_carry_s__;
       if (max_carry < GNUNET_SERVER_MAX_MESSAGE_SIZE)
          max_carry = GNUNET_SERVER_MAX_MESSAGE_SIZE;
-      av->consumption_since_last_update__ = -left_bytes;
       if (max_carry > left_bytes)
         av->consumption_since_last_update__ = -left_bytes;
       else
index 2d790739523307fb30f4cd5add3c1a3279bd1cb8..b15b578e2043e6bf33edabc4d385b5c7d5c7ae95 100644 (file)
@@ -740,10 +740,9 @@ GNUNET_SCHEDULER_run (GNUNET_SCHEDULER_Task task, void *task_cls)
                                      task_cls,
                                      GNUNET_SCHEDULER_REASON_STARTUP);
 #if ENABLE_WINDOWS_WORKAROUNDS
-  GNUNET_SCHEDULER_add_continuation (GNUNET_OS_install_parent_control_handler,
+  GNUNET_SCHEDULER_add_continuation (&GNUNET_OS_install_parent_control_handler,
                                      NULL, GNUNET_SCHEDULER_REASON_STARTUP);
 #endif
-
   last_tr = 0;
   busy_wait_warning = 0;
   while ((pending != NULL) ||