gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r33279 - gnunet/src/ats


From: gnunet
Subject: [GNUnet-SVN] r33279 - gnunet/src/ats
Date: Wed, 14 May 2014 14:11:35 +0200

Author: wachs
Date: 2014-05-14 14:11:35 +0200 (Wed, 14 May 2014)
New Revision: 33279

Modified:
   gnunet/src/ats/plugin_ats_ril.c
Log:
fix check


Modified: gnunet/src/ats/plugin_ats_ril.c
===================================================================
--- gnunet/src/ats/plugin_ats_ril.c     2014-05-14 12:08:14 UTC (rev 33278)
+++ gnunet/src/ats/plugin_ats_ril.c     2014-05-14 12:11:35 UTC (rev 33279)
@@ -2249,7 +2249,7 @@
   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 @@
   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 @@
   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);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]