aboutsummaryrefslogtreecommitdiff
path: root/src/util/speedup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/speedup.c')
-rw-r--r--src/util/speedup.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/util/speedup.c b/src/util/speedup.c
index a42ed7faf..6dce6a490 100644
--- a/src/util/speedup.c
+++ b/src/util/speedup.c
@@ -34,16 +34,17 @@ static struct GNUNET_TIME_Relative interval;
34 34
35static struct GNUNET_TIME_Relative delta; 35static struct GNUNET_TIME_Relative delta;
36 36
37static struct GNUNET_SCHEDULER_Task * speedup_task; 37static struct GNUNET_SCHEDULER_Task *speedup_task;
38 38
39 39
40static void 40static void
41do_speedup (void *cls, 41do_speedup (void *cls)
42 const struct GNUNET_SCHEDULER_TaskContext *tc)
43{ 42{
44 static long long current_offset; 43 static long long current_offset;
44 const struct GNUNET_SCHEDULER_TaskContext *tc;
45 45
46 speedup_task = NULL; 46 speedup_task = NULL;
47 tc = GNUNET_SCHEDULER_get_task_context ();
47 if (0 != (GNUNET_SCHEDULER_REASON_SHUTDOWN & tc->reason)) 48 if (0 != (GNUNET_SCHEDULER_REASON_SHUTDOWN & tc->reason))
48 return; 49 return;
49 current_offset += delta.rel_value_us; 50 current_offset += delta.rel_value_us;