chiark
/
gitweb
/
~mdw
/
dvdrip
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8da99a8
)
dvd-sector-copy.c: Go back to showing just disc progress when continuing.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 6 Mar 2022 00:57:05 +0000
(
00:57
+0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sun, 6 Mar 2022 00:57:05 +0000
(
00:57
+0000)
dvd-sector-copy.c
patch
|
blob
|
blame
|
history
diff --git
a/dvd-sector-copy.c
b/dvd-sector-copy.c
index e60bbbe3b5257cfe202136a34105f3f6c2b61d32..0f2ddb77a06c164fc20922709c5a9b694500b402 100644
(file)
--- 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);
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);
}
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 (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",
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",