15 Commits
Author SHA1 Message Date
Andrew Wood ae81f83e9b New option "--direct-io". 2023-07-27 21:44:30 +01:00
Andrew Wood 6cff3c1c2a First draft of new "--sync" option. 2023-07-26 22:17:00 +01:00
Andrew Wood 0518357560 Make the --numeric --bytes --line-mode combination more explicitly defined 2023-07-24 20:57:31 +01:00
Andrew Wood 461486ec4f Added --bits option 2023-07-16 23:12:12 +01:00
Andrew Wood fd46c9b1f6 Update manual month and year 2023-07-16 22:44:33 +01:00
Andrew Wood bcb33ce2aa Honour the --force setting when writing the progress display 2023-07-16 21:58:08 +01:00
Andrew Wood 4fddf40436 Rename --eta-window to --average-rate-window, since that is what it does, and correct the behaviour of the final update so the final rate shown is the average rate across the whole transfer. 2023-07-16 21:00:08 +01:00
Andrew WoodandGitHub 56adce8edf Merge branch 'main' into eta_fix 2023-07-16 11:41:50 +01:00
Andrew Wood 0d1d5b77ec Applied patch from Dave Beckett to support "@filename" as a "--size" argument. 2023-07-16 11:07:06 +01:00
lemonsqueeze 6bdb951af4 Added -m, --eta-window option: set time window for average rate computation (default 30s) 2023-05-29 15:11:37 +02:00
lemonsqueeze 06824aee2d Fixed inaccurate ETAs: use current average rate over last 30 seconds instead of global rate
using global rate gives wildly inacurrate ETAs if rate changes over time.

this makes pv keep a history of progress over the last 30s interval and compute
current average rate over that, which fixes the issue.

fixed -a, --average-rate: show current average rate instead of global rate

[ quick test ]

- in one shell:
    $ dd if=/dev/zero of=/tmp/foo bs=1M count=5                 # simulate fast initial rate,
    $ (while true; do ls /*; sleep 1; done) >> /tmp/foo         # then slow rate. leave running ...

- in another shell:
    $ tail -f -n +1 /tmp/foo | pv -s 800M > /dev/null

    5.62MiB 0:00:17 [33.1KiB/s] [>                              ]  0% ETA 0:40:02
        bad:  (pv 1.6.6 - 1.6.20)
        ETA of a few minutes that keeps increasing ever and ever ...

    5.62MiB 0:00:16 [33.1KiB/s] [>                              ]  0% ETA 6:45:53
        good:
        ETA of 6+ hours, which is how long it'll take to reach 800Mb at 33k/s
2023-05-29 15:09:36 +02:00
Andrew Wood cc95aa67a3 Renamed README to README.md and altered it to Markdown format; moved contributors from the README to docs/ACKNOWLEDGEMENTS.md 2022-05-29 21:45:13 +01:00
Andrew Wood 0f7069796e Minor updates in preparation for release of v1.6.19 2021-09-05 19:29:45 +01:00
Andrew Wood 7d68a574ca Added all changes made between v1.6.6 and June 2020 2021-09-04 21:00:00 +01:00
Andrew Wood 12f28d0689 Initial commit based on v1.6.6 2021-09-04 20:51:25 +01:00