summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOmar Tarabai <tarabai@devegypt.com>2014-08-28 10:26:51 +0000
committerOmar Tarabai <tarabai@devegypt.com>2014-08-28 10:26:51 +0000
commit55e4ea7e6853ee2c29ae0152b517bf5c39c7dbc4 (patch)
treeab80fba556fe35aa3b4fefcbfbd378ddacd0b0d2 /src
parentd71aa438769f995b64b4a3d75ac54d0e63f509e2 (diff)
sensor: removed interval restriction
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 @@
#define LOG(kind,...) GNUNET_log_from (kind, "sensor-util",__VA_ARGS__)
/**
- * Minimum sensor execution interval (in seconds)
- */
-#define MIN_INTERVAL 30
-
-/**
* Supported sources of sensor information
*/
static const char *sources[] = { "gnunet-statistics", "process", NULL };
@@ -170,14 +165,6 @@ load_sensor_from_cfg (struct GNUNET_CONFIGURATION_Handle *cfg,
GNUNET_free (sensor);
return NULL;
}
- if (time_sec < MIN_INTERVAL)
- {
- LOG (GNUNET_ERROR_TYPE_ERROR,
- _("Sensor run interval too low (%" PRIu64 " < %d)\n"), time_sec,
- MIN_INTERVAL);
- GNUNET_free (sensor);
- return NULL;
- }
sensor->interval =
GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, time_sec);
//lifetime