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:
d366dab
)
dvd-sector-copy.c: Report final statistics correctly.
author
Mark Wooding
<mdw@distorted.org.uk>
Mon, 7 Mar 2022 23:46:52 +0000
(23:46 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Mon, 7 Mar 2022 23:46:52 +0000
(23:46 +0000)
dvd-sector-copy.c
patch
|
blob
|
blame
|
history
diff --git
a/dvd-sector-copy.c
b/dvd-sector-copy.c
index 833d8bd4717dda680014344f86deb570657f552a..cd45710baea54976da03bc2338ac53b974531aa5 100644
(file)
--- a/
dvd-sector-copy.c
+++ b/
dvd-sector-copy.c
@@
-1298,7
+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; }
+ if (nsectors == limit) { 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",