aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sensor/sensor_util_lib.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/sensor/sensor_util_lib.c b/src/sensor/sensor_util_lib.c
index d3ed8c408..fd5337343 100644
--- a/src/sensor/sensor_util_lib.c
+++ b/src/sensor/sensor_util_lib.c
@@ -32,11 +32,6 @@
32#define LOG(kind,...) GNUNET_log_from (kind, "sensor-util",__VA_ARGS__) 32#define LOG(kind,...) GNUNET_log_from (kind, "sensor-util",__VA_ARGS__)
33 33
34/** 34/**
35 * Minimum sensor execution interval (in seconds)
36 */
37#define MIN_INTERVAL 30
38
39/**
40 * Supported sources of sensor information 35 * Supported sources of sensor information
41 */ 36 */
42static const char *sources[] = { "gnunet-statistics", "process", NULL }; 37static const char *sources[] = { "gnunet-statistics", "process", NULL };
@@ -170,14 +165,6 @@ load_sensor_from_cfg (struct GNUNET_CONFIGURATION_Handle *cfg,
170 GNUNET_free (sensor); 165 GNUNET_free (sensor);
171 return NULL; 166 return NULL;
172 } 167 }
173 if (time_sec < MIN_INTERVAL)
174 {
175 LOG (GNUNET_ERROR_TYPE_ERROR,
176 _("Sensor run interval too low (%" PRIu64 " < %d)\n"), time_sec,
177 MIN_INTERVAL);
178 GNUNET_free (sensor);
179 return NULL;
180 }
181 sensor->interval = 168 sensor->interval =
182 GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, time_sec); 169 GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, time_sec);
183 //lifetime 170 //lifetime