From 301004a70fc000f758913db3272b846a94551d23 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 10 Dec 2011 18:15:08 +0100 Subject: make it more obvious that we convert from micro seconds to seconds Signed-off-by: Florian Pritz --- fb-helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- cgit v1.2.3-24-g4f1b