Commit Graph

  • 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 Wood 2026-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 Wood 2026-04-19 12:16:48 +01:00
  • b3410cf8c0 Adjust the lower boundary to make failure less likely on a heavily loaded system. Andrew Wood 2026-04-19 00:19:29 +01:00
  • dc51002ba4 Reword the introduction, and mention monitor mode. Andrew Wood 2026-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 Wood 2026-04-18 22:34:32 +01:00
  • 26c4ad45bd Note the error reporting change. Andrew Wood 2026-04-18 22:30:39 +01:00
  • cb8cac81aa Message line number updates. Andrew Wood 2026-04-18 22:24:09 +01:00
  • 7dc02a475e Make pv_error() and pv_perror() available outside of src/pv/, and use them throughout the program. Andrew Wood 2026-04-18 22:23:28 +01:00
  • 25f43e129f Use pv_perror() rather than perror(), for consistency. Andrew Wood 2026-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 Wood 2026-04-18 21:07:08 +01:00
  • 0af9cb2314 Use pv_error() instead of writing directly to stderr. Andrew Wood 2026-04-18 20:33:07 +01:00
  • fc364d381f Dynamically allocate the error message prefix, instead of copying it into a static buffer. Andrew Wood 2026-04-18 20:30:39 +01:00
  • 0481e99c2f Use pv_error() instead of writing directly to stderr. Andrew Wood 2026-04-18 20:29:40 +01:00
  • 7eedf884ea Add TODO markers for changes to make the code easier to understand. Andrew Wood 2026-04-18 20:11:20 +01:00
  • ebefc02f4e Tidy up comments. Andrew Wood 2026-04-18 18:00:48 +01:00
  • 17d9ee59e7 Tidy up comments. Andrew Wood 2026-04-18 17:41:14 +01:00
  • fec4253f07 Tidy up comments. Andrew Wood 2026-04-18 17:23:13 +01:00
  • 505a6d9d2b Tidy up comments. Andrew Wood 2026-04-18 14:48:13 +01:00
  • 3a90959f9c Tidy up comments. Andrew Wood 2026-04-18 14:37:29 +01:00
  • 73d1237f1b Tidy up comments. Andrew Wood 2026-04-17 23:27:30 +01:00
  • 1b5a936ebf Tidy up comments. Andrew Wood 2026-04-16 21:59:49 +01:00
  • 7de5e2ca33 Tidy up comments. Andrew Wood 2026-04-16 20:49:44 +01:00
  • 854186c942 Tidy up comments. Andrew Wood 2026-04-16 20:46:07 +01:00
  • 39c7d4f586 Tidy up comments. Andrew Wood 2026-04-15 22:00:50 +01:00
  • 2e08bbb20a Tidy up comments. Andrew Wood 2026-04-14 22:17:00 +01:00
  • bea21335c0 Add TODO markers for the removal of fprintf(stderr). Andrew Wood 2026-04-14 21:54:33 +01:00
  • ba80d546bc Tidy up comments. Andrew Wood 2026-04-14 21:49:50 +01:00
  • d120d654c6 Tidy up comments. Andrew Wood 2026-04-13 21:25:03 +01:00
  • b68560a5b6 Tidy up comments. Andrew Wood 2026-04-13 20:16:48 +01:00
  • d66343d6f6 Fix a typo in a comment. Andrew Wood 2026-04-12 21:33:57 +01:00
  • 7e1aa366b6 Note the cleanups made so far. Andrew Wood 2026-04-12 20:14:37 +01:00
  • 4749cdbb27 Tidy up comments, add a TODO marker for removal of a static buffer. Andrew Wood 2026-04-12 20:08:21 +01:00
  • 70fd445307 Fix a typo in a comment. Andrew Wood 2026-04-12 18:41:15 +01:00
  • 99d27893eb Add TODO markers for later improvements. Andrew Wood 2026-04-12 18:39:38 +01:00
  • ef730dda06 Minor corrections to the comments. Andrew Wood 2026-04-12 17:42:16 +01:00
  • e82aa71f26 Update message positions. Andrew Wood 2026-04-11 15:52:28 +01:00
  • e0f091384f Replace fgets() with getline() to eliminate buffers of a fixed size. Andrew Wood 2026-04-11 15:51:42 +01:00
  • bca6fc9542 Tidy up the comments. Andrew Wood 2026-04-11 13:39:51 +01:00
  • 937298eec2 Update message positions. Andrew Wood 2026-04-11 13:39:35 +01:00
  • 2ff99ab1cd Add TODO markers for elimination of fixed size buffers. Andrew Wood 2026-04-09 22:01:54 +01:00
  • 593723ba92 Explain the error branch. Andrew Wood 2026-04-09 21:58:38 +01:00
  • 989a34b7c7 Explain what's going on with realloc(). Andrew Wood 2026-04-09 21:44:57 +01:00
  • 49b6c71f42 Message line number updates. Andrew Wood 2026-04-08 22:05:32 +01:00
  • b3eacc71d0 Note the --help fix on small terminals. Andrew Wood 2026-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 Wood 2026-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 Wood 2026-04-07 22:20:55 +01:00
  • 3eff81f1a6 Update the translations count for coralpink. Andrew Wood 2026-04-06 16:58:15 +01:00
  • 72376e2d29 Merge changes from weblate (#186). Andrew Wood 2026-04-06 16:44:15 +01:00
  • 7532f33c7d Translated using Weblate (Polish) Coral PinkandCodeberg Translate 2026-04-06 15:08:11 +00:00
  • cf68a17f33 Message line number updates. Andrew Wood 2026-04-06 16:08:10 +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 Wood 2026-04-06 16:07:56 +01:00
  • e01e456825 Note the cleanup of the OpenBSD warning. Andrew Wood 2026-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 Wood 2026-04-06 15:19:24 +01:00
  • bec0b6924e Update message positions, and add the new strings for monitor mode. Andrew Wood 2026-04-06 14:12:59 +01:00
  • 1f96f368bd Note the correction to --pidfile error checking. Andrew Wood 2026-04-05 20:42:05 +01:00
  • 3aac6a7b64 Tidy up the comments. Andrew Wood 2026-04-05 20:23:38 +01:00
  • fc23d71226 Return an error from pv__write_pidfile() if the final rename() fails. Andrew Wood 2026-04-05 19:34:00 +01:00
  • c2474f5c33 Tidy up the comments. Andrew Wood 2026-04-05 19:30:51 +01:00
  • 9427d210d8 Remove the "ratio" option flag, as it is not needed (#67). Andrew Wood 2026-04-05 15:10:53 +01:00
  • bd5b709dda Calculate the size, in monitor mode (#67). Andrew Wood 2026-04-04 21:43:43 +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 Wood 2026-04-04 21:07:04 +01:00
  • f5fd94ef77 Note the warning cleanup. Andrew Wood 2026-04-04 13:44:47 +01:00
  • 7c0573c847 Version bump for feature addition. Andrew Wood 2026-04-04 13:37:15 +01:00
  • 02b3f215fc Update to match the source material, for --monitor (#67). Andrew Wood 2026-04-04 13:35:52 +01:00
  • 00b03fbfea Note the --monitor option (#67). Andrew Wood 2026-04-04 13:34:14 +01:00
  • 74de4e9a01 Merge branch 'wrap_process' Andrew Wood 2026-04-04 13:30:50 +01:00
  • d8cc637b56 Add the "%{ratio}" formatter (#67). Andrew Wood 2026-04-03 21:49:41 +01:00
  • 8f19633dd7 In "-M both" mode, exchange information about the total amount transferred with the other side (#67). Andrew Wood 2026-04-03 21:12:13 +01:00
  • 6c3a08af2b Document the ratio formatting sequence (#67). Andrew Wood 2026-04-03 20:32:14 +01:00
  • 7892e54d7e Rather than setting an option flag for ratio, add it to the default format string on the "out" side (#67). Andrew Wood 2026-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 Wood 2026-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 Wood 2026-04-02 23:08:49 +01:00
  • 002780fbaf Ignore files autogenerated by "autoreconf" (#185). Andrew Wood 2026-04-01 22:14:57 +01:00
  • 1003bbb121 Remove src/include/config.h.in from the repository as it is generated by "autoreconf" and causes conflicts (#185). Andrew Wood 2026-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 Wood 2026-04-01 22:09:19 +01:00
  • ad834055db Acknowledge PR#180. Andrew Wood 2026-03-31 22:18:00 +01:00
  • 7ce6d275ba Merge pull request 'fix discard const qualifier from pointers' (#180) from heitbaum/pv:const into main Andrew Wood 2026-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 Wood 2026-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 Wood 2026-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 Wood 2026-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 Wood 2026-03-27 22:28:07 +00:00
  • 3c8393f8be Note the translation updates. Andrew Wood 2026-03-26 23:42:56 +00:00
  • b1178b2ee2 Acknowledge Finnish translations submitter (#184). Andrew Wood 2026-03-25 23:46:22 +00:00
  • d670d47542 Merge pull request 'Translations update from Codeberg Translate' (#184) from translate/pv:weblate-pv-pv into main Andrew Wood 2026-03-26 00:43:49 +01:00
  • 00cd3cfcc5 Translated using Weblate (Finnish) Ricky-TiggandCodeberg Translate 2026-03-24 13:05:16 +00:00
  • 7edbd3e951 Add a TODO about how to get ratio information (#67). Andrew Wood 2026-03-24 23:06:36 +00:00
  • d98237134b Adjust the -M help so it specifies the range of accepted values (#67). Andrew Wood 2026-03-23 22:33:25 +00:00
  • 53d9f81eee Update the translation totals. Andrew Wood 2026-03-22 16:46:48 +00:00
  • 7e504b2f47 Merge pull request 'Translations update from Codeberg Translate' (#183) from translate/pv:weblate-pv-pv into main Andrew Wood 2026-03-22 17:42:33 +01:00
  • 0e2e30a74c Add a release checklist step to check for updates translations. Andrew Wood 2026-03-22 16:36:33 +00:00
  • 7373ccfaad Merge remote-tracking branch 'origin/main' Codeberg Translate 2026-03-22 16:32:04 +00:00
  • 1442c148d8 Translated using Weblate (Polish) Coral PinkandCodeberg Translate 2026-03-22 14:06:06 +00:00
  • 59873f1d41 Commit to new version and release date. v1.10.5 Andrew Wood 2026-03-22 14:54:11 +00:00
  • 805f66badf Timestamp update. Andrew Wood 2026-03-22 14:53:43 +00:00
  • a063b95005 Fix the rate calculation when --bits is used - patch from user mojohakase (#182). Andrew Wood 2026-03-21 22:28:27 +00:00
  • 5c84305817 Hide the __attribute__() definition from splint so it doesn't generate spurious warnings. Andrew Wood 2026-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 Wood 2026-03-21 15:47:07 +00:00
  • 6a20139f5c Add a macro to remove __attribute__(()) if not compiling with GCC. Andrew Wood 2026-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 Wood 2026-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 Wood 2026-03-20 23:00:44 +00:00