d638cd50f4
Remove pv_bound_long() and the blanket 100,000 hour cutoff - instead, clamp the ETA to just under 100,000 hours (to keep it from getting too wide), clamp the FINETA to a max of 7,000 years (to keep the date the same width), and make the timer show an overflow message when 1,000,000 days is reached.
Andrew Wood2026-04-19 13:02:03 +01:00
ebbcdf4b4d
Remove obsolete TODO - there is no open issue for it, and it doesn't explain what "better" means.
Andrew Wood2026-04-19 12:16:48 +01:00
b3410cf8c0
Adjust the lower boundary to make failure less likely on a heavily loaded system.
Andrew Wood2026-04-19 00:19:29 +01:00
dc51002ba4
Reword the introduction, and mention monitor mode.
Andrew Wood2026-04-19 00:09:26 +01:00
9bc5903337
Remove the empty translation catalogues for Spanish and Georgian, as they are unmaintained and have never received any submissions.
Andrew Wood2026-04-18 22:34:32 +01:00
7dc02a475e
Make pv_error() and pv_perror() available outside of src/pv/, and use them throughout the program.
Andrew Wood2026-04-18 22:23:28 +01:00
25f43e129f
Use pv_perror() rather than perror(), for consistency.
Andrew Wood2026-04-18 21:46:16 +01:00
b12681d667
Add a pv_perror() function to remove all the repeated strerror(errno) calls from pv_error() arguments, and standardise the error lines so the filename in question always comes first.
Andrew Wood2026-04-18 21:07:08 +01:00
0af9cb2314
Use pv_error() instead of writing directly to stderr.
Andrew Wood2026-04-18 20:33:07 +01:00
fc364d381f
Dynamically allocate the error message prefix, instead of copying it into a static buffer.
Andrew Wood2026-04-18 20:30:39 +01:00
0481e99c2f
Use pv_error() instead of writing directly to stderr.
Andrew Wood2026-04-18 20:29:40 +01:00
7eedf884ea
Add TODO markers for changes to make the code easier to understand.
Andrew Wood2026-04-18 20:11:20 +01:00
b3eacc71d0
Note the --help fix on small terminals.
Andrew Wood2026-04-07 23:09:42 +01:00
0eab393715
Make it clearer what display_word_wrap() does and set the margins more appropriately when the terminal size is small.
Andrew Wood2026-04-07 23:08:53 +01:00
52585447f0
Correct the wrapping width on lines after the first, improve the commenting, and avoid size_t underflow on very narrow terminals.
Andrew Wood2026-04-07 22:20:55 +01:00
3eff81f1a6
Update the translations count for coralpink.
Andrew Wood2026-04-06 16:58:15 +01:00
f4a3d61a17
Restructure the "monitor remaining side" part to avoid the need for a fallthrough in the case statement, getting rid of compiler warnings on CentOS 5, 6, and 7, and arguably making the code easier to follow.
Andrew Wood2026-04-06 16:07:56 +01:00
e01e456825
Note the cleanup of the OpenBSD warning.
Andrew Wood2026-04-06 15:20:08 +01:00
ba0738496e
In the stub pv_remote_check() used where remote control is unavailable (OpenBSD), return false so there is a return value.
Andrew Wood2026-04-06 15:19:24 +01:00
bec0b6924e
Update message positions, and add the new strings for monitor mode.
Andrew Wood2026-04-06 14:12:59 +01:00
1f96f368bd
Note the correction to --pidfile error checking.
Andrew Wood2026-04-05 20:42:05 +01:00
b79273bb91
At the end of the transfer, exchange information with the other monitor when in "monitor both" mode, so both sides learn each other's final transfer value, to give the correct final ratio (#67).
Andrew Wood2026-04-04 21:07:04 +01:00
7892e54d7e
Rather than setting an option flag for ratio, add it to the default format string on the "out" side (#67).
Andrew Wood2026-04-03 20:20:50 +01:00
d7327aaf95
Replace pv_state_set_format() with pv_set_format_options(), which takes a structure rather than a long list of arguments, to make it easier to pass around - and rely on pv_state_name_set() being called first rather than doing it within this function, so it is only doing one job (#67).
Andrew Wood2026-04-03 20:00:42 +01:00
80358e84f3
If no display options are passed and "-M both" is active, set a "ratio" option flag to display the in:out ratio as well (#67).
Andrew Wood2026-04-02 23:08:49 +01:00
1003bbb121
Remove src/include/config.h.in from the repository as it is generated by "autoreconf" and causes conflicts (#185).
Andrew Wood2026-04-01 22:11:40 +01:00
f36ff9b378
Remove po/Makefile.in.in from the repository as it is generated by "autoreconf" and causes conflicts (#185).
Andrew Wood2026-04-01 22:09:19 +01:00
7ce6d275ba
Merge pull request 'fix discard const qualifier from pointers' (#180) from heitbaum/pv:const into main
Andrew Wood2026-03-31 23:10:13 +02:00
8ef4ff2e84
If an empty format string is supplied, such as -F "", make that imply -q and cancel -c, so that -F "" -F "%b %t %r %p %e" -M both will monitor both sides but only display the output side - which will be useful when ratio is added (#67).
Andrew Wood2026-03-30 21:41:16 +01:00
00f06f2b2c
Pass the othermonitor_* values into the main state, and add TODO markers for next steps (#67).
Andrew Wood2026-03-29 21:49:47 +01:00
2a54d4edcc
Set up a pair of pipes for the in and out monitors to use to pass progress details between each other, and replace repeated "close if open" code with a macro (#67).
Andrew Wood2026-03-28 22:40:45 +00:00
8281b918ef
Add a TODO marker for monitor mode suggesting another way to pass ratio information between in and out (#67).
Andrew Wood2026-03-27 22:28:07 +00:00
d670d47542
Merge pull request 'Translations update from Codeberg Translate' (#184) from translate/pv:weblate-pv-pv into main
Andrew Wood2026-03-26 00:43:49 +01:00
7e504b2f47
Merge pull request 'Translations update from Codeberg Translate' (#183) from translate/pv:weblate-pv-pv into main
Andrew Wood2026-03-22 17:42:33 +01:00
0e2e30a74c
Add a release checklist step to check for updates translations.
Andrew Wood2026-03-22 16:36:33 +00:00
a063b95005
Fix the rate calculation when --bits is used - patch from user mojohakase (#182).
Andrew Wood2026-03-21 22:28:27 +00:00
5c84305817
Hide the __attribute__() definition from splint so it doesn't generate spurious warnings.
Andrew Wood2026-03-21 15:48:35 +00:00
c8e13d226b
Wait for the other processes associated with monitoring mode before returning, closing stdout beforehand so the monitored command will end (#67).
Andrew Wood2026-03-21 15:47:07 +00:00
6a20139f5c
Add a macro to remove __attribute__(()) if not compiling with GCC.
Andrew Wood2026-03-20 23:48:28 +00:00
7be959ece1
Add more debugging, and pass a dummy input file list of just "-" to the monitoring transfer loop (#67).
Andrew Wood2026-03-20 23:13:33 +00:00
b3896f93b2
Add more debugging, and set the pipefd entries to -1 after closing them to avoid double-close (#67).
Andrew Wood2026-03-20 23:00:44 +00:00