diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-12-24 01:10:47 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-12-24 01:10:47 +0000 |
commit | f1f603c7d0b3f03dca46a4f313472288eb080eb1 (patch) | |
tree | 3a29966b02dfb83e0a8a8d5c42b3116380209fb0 /src/sensor/gnunet-service-sensor_monitoring.c | |
parent | 53cd5b8eda2fa8db86b0907a62a39598981d008a (diff) | |
download | gnunet-f1f603c7d0b3f03dca46a4f313472288eb080eb1.tar.gz gnunet-f1f603c7d0b3f03dca46a4f313472288eb080eb1.zip |
making GNUNET_SCHEDULER_cancel() perform in O(1) instead of O(n) to help or even fully address #3247
Diffstat (limited to 'src/sensor/gnunet-service-sensor_monitoring.c')
-rw-r--r-- | src/sensor/gnunet-service-sensor_monitoring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sensor/gnunet-service-sensor_monitoring.c b/src/sensor/gnunet-service-sensor_monitoring.c index 4f1f9472a..f473c3a75 100644 --- a/src/sensor/gnunet-service-sensor_monitoring.c +++ b/src/sensor/gnunet-service-sensor_monitoring.c | |||
@@ -410,7 +410,7 @@ schedule_sensor (void *cls, const struct GNUNET_HashCode *key, void *value) | |||
410 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 410 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
411 | "Scheduling sensor `%s' to run after %" PRIu64 " microseconds\n", | 411 | "Scheduling sensor `%s' to run after %" PRIu64 " microseconds\n", |
412 | sensorinfo->name, sensorinfo->interval.rel_value_us); | 412 | sensorinfo->name, sensorinfo->interval.rel_value_us); |
413 | if (GNUNET_SCHEDULER_NO_TASK != sensorinfo->execution_task) | 413 | if (NULL != sensorinfo->execution_task) |
414 | { | 414 | { |
415 | LOG (GNUNET_ERROR_TYPE_ERROR, | 415 | LOG (GNUNET_ERROR_TYPE_ERROR, |
416 | _("Sensor `%s' execution task already set, this should not happen\n"), | 416 | _("Sensor `%s' execution task already set, this should not happen\n"), |