diff options
author | David Barksdale <amatus@amatus.name> | 2016-11-17 23:24:43 -0600 |
---|---|---|
committer | David Barksdale <amatus@amatus.name> | 2016-11-17 23:24:43 -0600 |
commit | 12597da2a33fe196a785a656136cba7675a06e21 (patch) | |
tree | c189c7fb7f2835f8219622400d83c453a91dbb69 /src/fs/fs_api.c | |
parent | cdeb1253bfda209def1ef48b436ff09cf7ab8be6 (diff) |
Sometimes it's OK if multiplication overflows
Diffstat (limited to 'src/fs/fs_api.c')
-rw-r--r-- | src/fs/fs_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fs/fs_api.c b/src/fs/fs_api.c index 1e8af23c53..7e769483b8 100644 --- a/src/fs/fs_api.c +++ b/src/fs/fs_api.c @@ -178,8 +178,8 @@ process_job_queue (void *cls) break; case GNUNET_FS_QUEUE_PRIORITY_NORMAL: run_time = - GNUNET_TIME_relative_multiply (h->avg_block_latency, - qe->blocks * qe->start_times); + GNUNET_TIME_relative_saturating_multiply (h->avg_block_latency, + qe->blocks * qe->start_times); end_time = GNUNET_TIME_absolute_add (qe->start_time, run_time); rst = GNUNET_TIME_absolute_get_remaining (end_time); if (0 == rst.rel_value_us) |