Commit Graph
19 Commits
Author SHA1 Message Date
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 a9cef81657 Minor formatting corrections 2022-05-29 21:52:15 +01: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 b78e58ab87 Moved all open issues into the GitHub issue tracker and copied in all related correspondence. 2022-05-29 21:00:43 +01:00
Andrew Wood 12d22b5ab0 Acknowledged new pull request 2022-05-29 17:12:09 +01:00
Andrew Wood 3255f72f39 Merge branch 'jwilk-forks-mojibake' into main 2022-05-29 12:47:33 +01:00
Jakub Wilk c79eb8540a Fixed encoding in README 2022-04-11 23:08:21 +02:00
Andrew Wood 0ca8ef5187 Dates bumped for release of 1.6.20 v1.6.20 2021-09-12 17:13:24 +01:00
Andrew Wood 386e3ac5fa Updated to include details of latest contributor 2021-09-08 17:26:13 +01:00
Andrew Wood 6e24924a23 Merge branch 'thesamesam-main' into main 2021-09-08 17:20:53 +01:00
Sam James b0720194e1 src/pv/number.c: add missing <stddef.h> include for NULL 2021-09-08 01:06:29 +01:00
Andrew Wood 613642ba3d Added TODO from Zach Riggle 2021-09-06 23:12:16 +01:00
Andrew WoodandGitHub 103df51a59 Create FUNDING.yml 2021-09-06 22:41:38 +01:00
Andrew Wood 0f7069796e Minor updates in preparation for release of v1.6.19 v1.6.19 2021-09-05 19:29:45 +01:00
Andrew Wood adf9672b25 Cleanup 2021-09-05 19:17:58 +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 9dd06d8acb Adjusted README for GitHub 2021-09-04 20:54:15 +01:00
Andrew Wood 12f28d0689 Initial commit based on v1.6.6 v1.6.6 2021-09-04 20:51:25 +01:00