From: Matthias Wachs Date: Wed, 14 May 2014 12:11:35 +0000 (+0000) Subject: fix check X-Git-Tag: initial-import-from-subversion-38251~4014 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3f7071b9e18b3013d4fe68fb9e9f5530d4174f73;p=oweals%2Fgnunet.git fix check --- 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);