diff options
Diffstat (limited to 'src/util/load.c')
-rw-r--r-- | src/util/load.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/load.c b/src/util/load.c index 5bcf220be..9bbea6c14 100644 --- a/src/util/load.c +++ b/src/util/load.c | |||
@@ -86,18 +86,18 @@ internal_update (struct GNUNET_LOAD_Value *load) | |||
86 | struct GNUNET_TIME_Relative delta; | 86 | struct GNUNET_TIME_Relative delta; |
87 | unsigned int n; | 87 | unsigned int n; |
88 | 88 | ||
89 | if (load->autodecline.value == GNUNET_TIME_UNIT_FOREVER_REL.value) | 89 | if (load->autodecline.rel_value == GNUNET_TIME_UNIT_FOREVER_REL.rel_value) |
90 | return; | 90 | return; |
91 | delta = GNUNET_TIME_absolute_get_duration (load->last_update); | 91 | delta = GNUNET_TIME_absolute_get_duration (load->last_update); |
92 | if (delta.value < load->autodecline.value) | 92 | if (delta.rel_value < load->autodecline.rel_value) |
93 | return; | 93 | return; |
94 | if (load->autodecline.value == 0) | 94 | if (load->autodecline.rel_value == 0) |
95 | { | 95 | { |
96 | load->runavg_delay = 0.0; | 96 | load->runavg_delay = 0.0; |
97 | load->load = 0; | 97 | load->load = 0; |
98 | return; | 98 | return; |
99 | } | 99 | } |
100 | n = delta.value / load->autodecline.value; | 100 | n = delta.rel_value / load->autodecline.rel_value; |
101 | if (n > 16) | 101 | if (n > 16) |
102 | { | 102 | { |
103 | load->runavg_delay = 0.0; | 103 | load->runavg_delay = 0.0; |