From e0c3a82de1bce18a32f95fba7b22b08b61354111 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sun, 6 Mar 2022 00:57:05 +0000 Subject: [PATCH] dvd-sector-copy.c: Go back to showing just disc progress when continuing. --- dvd-sector-copy.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dvd-sector-copy.c b/dvd-sector-copy.c index e60bbbe..0f2ddb7 100644 --- a/dvd-sector-copy.c +++ b/dvd-sector-copy.c @@ -1227,7 +1227,9 @@ int main(int argc, char *argv[]) copy_progress.render = render_copy_progress; progress_additem(&progress, ©_progress); - if (nsectors != limit) { + if (nsectors == limit - start) + { ndone = start; nsectors = limit; } + else { disc_progress.render = render_disc_progress; progress_additem(&progress, &disc_progress); } @@ -1296,6 +1298,7 @@ int main(int argc, char *argv[]) if (f&f_stats) { gettimeofday(&tv1, 0); t = tvdiff(&tv0, &tv1); + if (nsectors == limit - start) { ndone -= start; nsectors -= start; } tot = scale_bytes((double)nsectors*SECTORSZ, &totunit); rate = scale_bytes((double)nsectors*SECTORSZ/t, &rateunit); moan("all done: %.1f %sB in %s -- %.1f %sB/s", -- 2.11.0