From 3f7071b9e18b3013d4fe68fb9e9f5530d4174f73 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Wed, 14 May 2014 12:11:35 +0000 Subject: [PATCH] fix check --- src/ats/plugin_ats_ril.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ats/plugin_ats_ril.c b/src/ats/plugin_ats_ril.c index 30c679cf3..fef969a89 100644 --- a/src/ats/plugin_ats_ril.c +++ b/src/ats/plugin_ats_ril.c @@ -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); -- 2.25.1