projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9fafe84
)
dbz
author
Christian Grothoff
<christian@grothoff.org>
Fri, 11 Jun 2010 11:00:42 +0000
(11:00 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Fri, 11 Jun 2010 11:00:42 +0000
(11:00 +0000)
src/util/os_load.c
patch
|
blob
|
history
diff --git
a/src/util/os_load.c
b/src/util/os_load.c
index 90e5c795c1ea89375c2de741701f0ca0714fb4e5..f7b5dff96c96dfd7dd3297ce2f12c53ba74b3d77 100644
(file)
--- 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)
GNUNET_CONFIGURATION_get_value_number (cfg, "LOAD", "MAXIOLOAD",
&maxIOLoad))
return GNUNET_SYSERR;
+ if (maxIOLoad == 0)
+ return 100;
return (100 * ret) / maxIOLoad;
}