From a238b544458f64e91bfbadc492f248325d2677be Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sat, 9 Apr 2022 18:07:31 +0100 Subject: [PATCH] dvd-sector-copy.c (update_progress): Squish time delta calculation. --- dvd-sector-copy.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dvd-sector-copy.c b/dvd-sector-copy.c index c251bb7..b1ca133 100644 --- a/dvd-sector-copy.c +++ b/dvd-sector-copy.c @@ -335,8 +335,7 @@ static void update_progress(secaddr pos) struct timeval now; double t, f, g; - gettimeofday(&now, 0); - t = tvdiff(&last_time, &now); + gettimeofday(&now, 0); t = tvdiff(&last_time, &now); #define BETA (1 - alpha) -- 2.11.0