aboutsummaryrefslogtreecommitdiff
path: root/src/ats
diff options
context:
space:
mode:
authorDavid Barksdale <amatus@amatus.name>2016-11-17 23:24:43 -0600
committerDavid Barksdale <amatus@amatus.name>2016-11-17 23:24:43 -0600
commit12597da2a33fe196a785a656136cba7675a06e21 (patch)
treec189c7fb7f2835f8219622400d83c453a91dbb69 /src/ats
parentcdeb1253bfda209def1ef48b436ff09cf7ab8be6 (diff)
downloadgnunet-12597da2a33fe196a785a656136cba7675a06e21.tar.gz
gnunet-12597da2a33fe196a785a656136cba7675a06e21.zip
Sometimes it's OK if multiplication overflows
Diffstat (limited to 'src/ats')
-rw-r--r--src/ats/plugin_ats_ril.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ats/plugin_ats_ril.c b/src/ats/plugin_ats_ril.c
index a3bdf200c..ea7920779 100644
--- a/src/ats/plugin_ats_ril.c
+++ b/src/ats/plugin_ats_ril.c
@@ -1835,7 +1835,7 @@ ril_step_schedule_next (struct GAS_RIL_Handle *solver)
1835 GNUNET_assert(y <= (double) solver->parameters.step_time_max.rel_value_us); 1835 GNUNET_assert(y <= (double) solver->parameters.step_time_max.rel_value_us);
1836 GNUNET_assert(y >= (double) solver->parameters.step_time_min.rel_value_us); 1836 GNUNET_assert(y >= (double) solver->parameters.step_time_min.rel_value_us);
1837 1837
1838 time_next = GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MICROSECONDS, (unsigned long long) y); 1838 time_next = GNUNET_TIME_relative_saturating_multiply (GNUNET_TIME_UNIT_MICROSECONDS, (unsigned long long) y);
1839 1839
1840// LOG (GNUNET_ERROR_TYPE_INFO, "ratio: %f, factor: %f, offset: %f, y: %f\n", 1840// LOG (GNUNET_ERROR_TYPE_INFO, "ratio: %f, factor: %f, offset: %f, y: %f\n",
1841// used_ratio, 1841// used_ratio,