fix check
authorMatthias Wachs <wachs@net.in.tum.de>
Wed, 14 May 2014 12:11:35 +0000 (12:11 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Wed, 14 May 2014 12:11:35 +0000 (12:11 +0000)
src/ats/plugin_ats_ril.c

index 30c679cf34d4c14ceb1a106e3f158531484d7c7b..fef969a8966b5e402c50c20c55beb9c211a48ede 100644 (file)
@@ -2249,7 +2249,7 @@ libgnunet_plugin_ats_ril_init (void *cls)
   if (GNUNET_SYSERR != GNUNET_CONFIGURATION_get_value_float (env->cfg, "ats",
       "RIL_GRADIENT_STEP_SIZE", &f_tmp))
   {
-    if ((f_tmp < 0.0) || (f_tmp > 0.0))
+    if ((f_tmp < 0.0) || (f_tmp > 1.0))
     {
       LOG (GNUNET_ERROR_TYPE_ERROR, _("Invalid %s configuration %f \n"),
           "RIL_GRADIENT_STEP_SIZE", f_tmp);
@@ -2266,7 +2266,7 @@ libgnunet_plugin_ats_ril_init (void *cls)
   if (GNUNET_SYSERR != GNUNET_CONFIGURATION_get_value_float (env->cfg, "ats",
       "RIL_TRACE_DECAY", &f_tmp))
   {
-    if ((f_tmp < 0.0) || (f_tmp > 0.0))
+    if ((f_tmp < 0.0) || (f_tmp > 1.0))
     {
       LOG (GNUNET_ERROR_TYPE_ERROR, _("Invalid %s configuration %f \n"),
           "RIL_TRACE_DECAY", f_tmp);
@@ -2283,7 +2283,7 @@ libgnunet_plugin_ats_ril_init (void *cls)
   if (GNUNET_SYSERR != GNUNET_CONFIGURATION_get_value_float (env->cfg, "ats",
       "RIL_EXPLORE_RATIO", &f_tmp))
   {
-    if ((f_tmp < 0.0) || (f_tmp > 0.0))
+    if ((f_tmp < 0.0) || (f_tmp > 1.0))
     {
       LOG (GNUNET_ERROR_TYPE_ERROR, _("Invalid %s configuration %f \n"),
           "RIL_EXPLORE_RATIO", f_tmp);