summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fb-helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fb-helper.c b/fb-helper.c
index 0c816a1..71ae0ab 100644
--- a/fb-helper.c
+++ b/fb-helper.c
@@ -110,7 +110,7 @@ int progress_callback(
/* calculate time between this and the last call in seconds */
timeSpent =
(double)(now.tv_sec - data->last.tv_sec) +
- (double)(now.tv_usec - data->last.tv_usec) / 1000000.0;
+ (double)(now.tv_usec - data->last.tv_usec) / 1E6;
format_bytes((ulnow - data->ullast) / timeSpent, (char *)&speed);
/* don't refresh too often, catch if time went backwards */