Commit Graph
59 Commits
Author SHA1 Message Date
Andrew Wood 001dfb71c2 Show elapsed time as D:HH:MM:SS after 1 day, to match the ETA format 2023-07-16 22:29:18 +01:00
Andrew Wood bcb33ce2aa Honour the --force setting when writing the progress display 2023-07-16 21:58:08 +01:00
Andrew Wood c8090806f9 Added debugging output to pv_in_foreground() 2023-07-16 21:31:17 +01:00
Andrew Wood 3403ebd857 Adjust threshold to cope with new ETA calculation mechanism 2023-07-16 21:16:02 +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 Wood 62b5ac26df Reverse the average rate history early-return logic to make it easier to understand 2023-07-16 20:49:59 +01:00
Andrew Wood e8c0b6717f Update documentation regarding ETA issues 2023-07-16 12:27:20 +01:00
Andrew Wood 2bf76577dd Remove assertions from ETA history, set minimum boundary on ETA window, check for history structure allocation success 2023-07-16 12:14:07 +01:00
Andrew Wood 90d9638488 Minor format changes as per indent(1) standardisation 2023-07-16 11:53:36 +01:00
Andrew WoodandGitHub f6d0135cc6 Merge pull request #65 from lemonsqueeze/eta_fix
Alter ETA calculation to use the rate over the past 30 seconds instead of over the whole transfer, and allow that 30 second window to be adjusted.
2023-07-16 11:46:23 +01:00
Andrew WoodandGitHub 56adce8edf Merge branch 'main' into eta_fix 2023-07-16 11:41:50 +01:00
Andrew Wood 008ee74a98 Update documentation to reflex bug fix GH#62, GH#32 2023-07-16 11:33:44 +01:00
Andrew Wood fa8aa85248 Merge branch 'vbychkoviak-main' into main 2023-07-16 11:24:06 +01:00
Andrew Wood 442a298c38 Merge branch 'main' of https://github.com/vbychkoviak/pv into vbychkoviak-main 2023-07-16 11:23:46 +01:00
Andrew Wood bb0c5bdfca Applied standard indent(1) settings 2023-07-16 11:20:03 +01:00
Andrew Wood 29908cff6c Remove "-s @" / issue 44 from TODO list 2023-07-16 11:14:05 +01:00
Andrew Wood 456ab7cebb Applied OS X 11 stat64 configure.in patch from Dave Beckett 2023-07-16 11:11:09 +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
Andrew Wood ff5efbe3eb Added issue #56 2023-07-16 01:54:00 +01:00
Andrew Wood 81d008a325 Updated to include mention of latest pull request 2023-07-16 01:43:07 +01:00
Andrew Wood 288dd633d7 Merge branch 'christoph-zededa-mac_os_x_pidfds' into main 2023-07-16 01:37:21 +01:00
Andrew Wood 9dce037cdc Merge branch 'mac_os_x_pidfds' of https://github.com/christoph-zededa/pv into christoph-zededa-mac_os_x_pidfds 2023-07-16 01:37:08 +01:00
Andrew Wood 6ae07496d2 Minor formatting fixes 2023-07-16 01:35:58 +01:00
Andrew Wood cd60822380 Convert issue numbers to links, and bring the feature request list up to date. 2023-07-16 01:30:50 +01:00
Andrew Wood 0fdd9f0787 Formatting fix 2023-07-16 01:03:47 +01:00
Andrew Wood 0d520172ac Added new contributors and cleaned up formatting 2023-07-16 01:02:50 +01:00
Andrew Wood 04ea58f786 Added details of latest pull request 2023-07-16 00:56:24 +01:00
Andrew Wood 94a9f658e1 Merge branch 'quitschbo-main' into main 2023-07-16 00:47:52 +01:00
Andrew Wood 0ec9e208df Merge branch 'main' of https://github.com/quitschbo/pv into quitschbo-main 2023-07-16 00:47:33 +01:00
Andrew Wood 4c84060940 Markdown formatting cleanups 2023-07-16 00:44:21 +01:00
Andrew Wood 8fb3aecde5 Finalise pull from ikasty to show relative filenames in --watchfd 2023-07-16 00:28:58 +01:00
Andrew Wood e228b3397d Merge branch 'ikasty-main' into main 2023-07-16 00:16:03 +01:00
Andrew Wood d1d1999334 Merge branch 'main' of https://github.com/ikasty/pv into ikasty-main 2023-07-16 00:14:34 +01:00
Andrew Wood 685c91a1cb NEWS was renamed to NEWS.md. 2023-07-16 00:04:33 +01:00
Andrew Wood 50c0b329c9 Moved NEWS and TODO to UTF-8 Markdown format, and linked them in from the README. 2023-07-16 00:00:19 +01:00
Andrew Wood 5c8e2707a4 Removed support for Red Hat Enterprise Linux package builds 2023-07-15 23:41:27 +01:00
Kang Daeyoun 5768166460 Use relative filepath in watchpid if possible 2023-06-09 12:32:59 +09: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
Michael Weiß c5cd932fb0 pv/display: handle error of tcgetpgrp() in pv_in_foreground()
Show pv progress bar even if no terminal is set, e.g., in a busybox
init script. The description of pv_in_forground() states it will
return true "if we aren't outputting to a terminal". However, this
is not the case since tcgetpgrg() will return an error and set ERRNO
to ENOTTY if the output fd is not an tty. We now handle this error
correctly and pv_in_foreground() returns also true in that case.

Signed-off-by: Michael Weiß <michael.weiss@aisec.fraunhofer.de>
2023-05-10 09:54:59 +02:00
Volodymyr Bychkovyak a6ecf60ad1 fix rate limiting issues 2023-03-22 02:49:46 -07:00
Christoph Ostarek b0cad6d3e3 implement fd watching for OS X 2023-02-19 18:20:00 +01: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