Commit Graph
956 Commits
Author SHA1 Message Date
Andrew Wood 02b3f215fc Update to match the source material, for --monitor (#67). 2026-04-04 13:35:52 +01:00
Andrew Wood 00b03fbfea Note the --monitor option (#67). 2026-04-04 13:34:14 +01:00
Andrew Wood 74de4e9a01 Merge branch 'wrap_process' 2026-04-04 13:30:50 +01:00
Andrew Wood d8cc637b56 Add the "%{ratio}" formatter (#67). 2026-04-03 21:49:41 +01:00
Andrew Wood 8f19633dd7 In "-M both" mode, exchange information about the total amount transferred with the other side (#67). 2026-04-03 21:12:13 +01:00
Andrew Wood 6c3a08af2b Document the ratio formatting sequence (#67). 2026-04-03 20:32:14 +01:00
Andrew Wood 7892e54d7e Rather than setting an option flag for ratio, add it to the default format string on the "out" side (#67). 2026-04-03 20:20:50 +01:00
Andrew Wood 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). 2026-04-03 20:00:42 +01:00
Andrew Wood 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). 2026-04-02 23:08:49 +01:00
Andrew Wood 002780fbaf Ignore files autogenerated by "autoreconf" (#185). 2026-04-01 22:14:57 +01:00
Andrew Wood 1003bbb121 Remove src/include/config.h.in from the repository as it is generated by "autoreconf" and causes conflicts (#185). 2026-04-01 22:11:40 +01:00
Andrew Wood f36ff9b378 Remove po/Makefile.in.in from the repository as it is generated by "autoreconf" and causes conflicts (#185). 2026-04-01 22:09:19 +01:00
Andrew Wood ad834055db Acknowledge PR#180. 2026-03-31 22:18:00 +01:00
Andrew Wood 7ce6d275ba Merge pull request 'fix discard const qualifier from pointers' (#180) from heitbaum/pv:const into main
Reviewed-on: https://codeberg.org/ivarch/pv/pulls/180
2026-03-31 23:10:13 +02:00
Andrew Wood 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). 2026-03-30 21:41:16 +01:00
Andrew Wood 00f06f2b2c Pass the othermonitor_* values into the main state, and add TODO markers for next steps (#67). 2026-03-29 21:49:47 +01:00
Andrew Wood 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). 2026-03-28 22:40:45 +00:00
Andrew Wood 8281b918ef Add a TODO marker for monitor mode suggesting another way to pass ratio information between in and out (#67). 2026-03-27 22:28:07 +00:00
Andrew Wood 3c8393f8be Note the translation updates. 2026-03-26 23:42:56 +00:00
Andrew Wood b1178b2ee2 Acknowledge Finnish translations submitter (#184). 2026-03-25 23:46:22 +00:00
Andrew Wood d670d47542 Merge pull request 'Translations update from Codeberg Translate' (#184) from translate/pv:weblate-pv-pv into main
Reviewed-on: https://codeberg.org/ivarch/pv/pulls/184
2026-03-26 00:43:49 +01:00
Ricky-TiggandCodeberg Translate 00cd3cfcc5 Translated using Weblate (Finnish)
Currently translated at 90.7% (127 of 140 strings)

Translation: pv/pv
Translate-URL: https://translate.codeberg.org/projects/pv/pv/fi/
2026-03-24 23:25:21 +00:00
Andrew Wood 7edbd3e951 Add a TODO about how to get ratio information (#67). 2026-03-24 23:06:36 +00:00
Andrew Wood d98237134b Adjust the -M help so it specifies the range of accepted values (#67). 2026-03-23 22:33:25 +00:00
Andrew Wood 53d9f81eee Update the translation totals. 2026-03-22 16:47:21 +00:00
Andrew Wood 7e504b2f47 Merge pull request 'Translations update from Codeberg Translate' (#183) from translate/pv:weblate-pv-pv into main
Reviewed-on: https://codeberg.org/ivarch/pv/pulls/183
Reviewed-by: Andrew Wood <a-j-wood@noreply.codeberg.org>
2026-03-22 17:42:33 +01:00
Andrew Wood 0e2e30a74c Add a release checklist step to check for updates translations. 2026-03-22 16:36:33 +00:00
Codeberg Translate 7373ccfaad Merge remote-tracking branch 'origin/main' 2026-03-22 16:32:04 +00:00
Coral PinkandCodeberg Translate 1442c148d8 Translated using Weblate (Polish)
Currently translated at 100.0% (140 of 140 strings)

Translation: pv/pv
Translate-URL: https://translate.codeberg.org/projects/pv/pv/pl/
2026-03-22 15:50:00 +00:00
Andrew Wood 59873f1d41 Commit to new version and release date. v1.10.5 2026-03-22 14:54:11 +00:00
Andrew Wood 805f66badf Timestamp update. 2026-03-22 14:53:43 +00:00
Andrew Wood a063b95005 Fix the rate calculation when --bits is used - patch from user mojohakase (#182). 2026-03-21 22:28:27 +00:00
Andrew Wood 5c84305817 Hide the __attribute__() definition from splint so it doesn't generate spurious warnings. 2026-03-21 15:48:35 +00:00
Andrew Wood c8e13d226b Wait for the other processes associated with monitoring mode before returning, closing stdout beforehand so the monitored command will end (#67). 2026-03-21 15:47:07 +00:00
Andrew Wood 6a20139f5c Add a macro to remove __attribute__(()) if not compiling with GCC. 2026-03-20 23:48:28 +00:00
Andrew Wood 7be959ece1 Add more debugging, and pass a dummy input file list of just "-" to the monitoring transfer loop (#67). 2026-03-20 23:13:33 +00:00
Andrew Wood b3896f93b2 Add more debugging, and set the pipefd entries to -1 after closing them to avoid double-close (#67). 2026-03-20 23:00:44 +00:00
Andrew Wood 09a55ef62a Put the constant on the left hand side to avoid accidental assignment if an "=" is omitted (#67). 2026-03-20 22:14:35 +00:00
Andrew Wood 149be3f9ab Run the transfer main loop for the in and out monitoring sides, using another process for "out" if monitoring both (#67). 2026-03-20 22:12:14 +00:00
Andrew Wood f647b12a2d Pass through "make indent" for consistency (#67). 2026-03-20 22:11:19 +00:00
Andrew Wood ff8e396500 Do not add the monitor command arguments as PV input files; and execute the monitor command in the monitor process (#67). 2026-03-19 22:58:47 +00:00
Andrew Wood 04f99c4951 Use a special type for opts->argv[] so that the whole array, and array entries, can both be NULL, and the array entries pointers to constant strings; and ensure that argv[] always has a NULL pointer on the end - all so argv can be passed to execvp() (#67). 2026-03-19 22:57:41 +00:00
Andrew Wood 29c65ad9e1 Set up stdin/stdout for the monitored command (#67). 2026-03-18 22:28:51 +00:00
Andrew Wood f84a668098 Fork for the command to monitor (#67). 2026-03-17 23:41:23 +00:00
Andrew Wood 06721c7be1 Create pipes for monitoring (#67). 2026-03-14 22:34:17 +00:00
Andrew Wood bd70b0c6cb Set exit status for --monitor errors (#67). 2026-03-14 22:33:52 +00:00
Andrew Wood 220625f370 Add TODO markers for the next steps of monitor mode (#67). 2026-03-14 21:50:50 +00:00
Andrew Wood 4606638567 Constrain the options so that -M cannot be used with -U (as it is a different action) and -M will report the right error message if mixed with -R or -Q (#67). 2026-03-14 17:20:30 +00:00
Andrew Wood 882428883a Remember both -N and -F values if two were given (#67). 2026-03-14 14:54:53 +00:00
Andrew Wood c2bbb8eef1 Parse the monitoring side setting from "--monitor" (#67). 2026-03-14 14:28:30 +00:00