aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/fs_api.c')
-rw-r--r--src/fs/fs_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fs/fs_api.c b/src/fs/fs_api.c
index 1e8af23c5..7e769483b 100644
--- a/src/fs/fs_api.c
+++ b/src/fs/fs_api.c
@@ -178,8 +178,8 @@ process_job_queue (void *cls)
178 break; 178 break;
179 case GNUNET_FS_QUEUE_PRIORITY_NORMAL: 179 case GNUNET_FS_QUEUE_PRIORITY_NORMAL:
180 run_time = 180 run_time =
181 GNUNET_TIME_relative_multiply (h->avg_block_latency, 181 GNUNET_TIME_relative_saturating_multiply (h->avg_block_latency,
182 qe->blocks * qe->start_times); 182 qe->blocks * qe->start_times);
183 end_time = GNUNET_TIME_absolute_add (qe->start_time, run_time); 183 end_time = GNUNET_TIME_absolute_add (qe->start_time, run_time);
184 rst = GNUNET_TIME_absolute_get_remaining (end_time); 184 rst = GNUNET_TIME_absolute_get_remaining (end_time);
185 if (0 == rst.rel_value_us) 185 if (0 == rst.rel_value_us)