summaryrefslogtreecommitdiff
path: root/src/rps/gnunet-rps-profiler.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rps/gnunet-rps-profiler.c')
-rw-r--r--src/rps/gnunet-rps-profiler.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rps/gnunet-rps-profiler.c b/src/rps/gnunet-rps-profiler.c
index 82aeffb79..908dcca17 100644
--- a/src/rps/gnunet-rps-profiler.c
+++ b/src/rps/gnunet-rps-profiler.c
@@ -3067,9 +3067,10 @@ run (void *cls,
}
else
{
- duration = GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS,
- (timeout.rel_value_us / 1000000)
- * 0.75);
+ duration = GNUNET_TIME_relative_multiply (
+ GNUNET_TIME_UNIT_SECONDS,
+ ( (double) timeout.rel_value_us / (double) 1000000)
+ * 0.75);
}
}
else