summaryrefslogtreecommitdiffstats
path: root/fb-helper.c
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-12-10 18:15:08 +0100
committerFlorian Pritz <bluewind@xinu.at>2011-12-10 18:15:08 +0100
commit301004a70fc000f758913db3272b846a94551d23 (patch)
tree9ec6da16b056ba764cb7ab217a7528a7999d5cac /fb-helper.c
parent6d56af6deeeb8f2cdfdb52952a5179c2e5bc92be (diff)
make it more obvious that we convert from micro seconds to seconds
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'fb-helper.c')
-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 */