aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-06-11 11:00:42 +0000
committerChristian Grothoff <christian@grothoff.org>2010-06-11 11:00:42 +0000
commitab830296816a2d91f54c275b634928f4d4cf5519 (patch)
tree71094ba3ee3c7804f19fe06701c7462467559402 /src/util
parent9fafe84d893f665a8e5a39b6a6dcd29752bb5800 (diff)
downloadgnunet-ab830296816a2d91f54c275b634928f4d4cf5519.tar.gz
gnunet-ab830296816a2d91f54c275b634928f4d4cf5519.zip
dbz
Diffstat (limited to 'src/util')
-rw-r--r--src/util/os_load.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/os_load.c b/src/util/os_load.c
index 90e5c795c..f7b5dff96 100644
--- a/src/util/os_load.c
+++ b/src/util/os_load.c
@@ -628,6 +628,8 @@ GNUNET_OS_load_disk_get (const struct GNUNET_CONFIGURATION_Handle *cfg)
628 GNUNET_CONFIGURATION_get_value_number (cfg, "LOAD", "MAXIOLOAD", 628 GNUNET_CONFIGURATION_get_value_number (cfg, "LOAD", "MAXIOLOAD",
629 &maxIOLoad)) 629 &maxIOLoad))
630 return GNUNET_SYSERR; 630 return GNUNET_SYSERR;
631 if (maxIOLoad == 0)
632 return 100;
631 return (100 * ret) / maxIOLoad; 633 return (100 * ret) / maxIOLoad;
632} 634}
633 635