Pass the othermonitor_* values into the main state, and add TODO markers for next steps (#67).

This commit is contained in:
Andrew Wood
2026-03-29 21:49:47 +01:00
parent 2a54d4edcc
commit 00f06f2b2c
7 changed files with 25 additions and 9 deletions
+3
View File
@@ -201,6 +201,9 @@ struct pvstate_s {
off_t size; /* total size of data */
unsigned int skip_errors; /* skip read errors counter */
int output_fd; /* fd to write output to */
pid_t othermonitor_pid; /* pid of the other monitor, in "-M both" mode */
int othermonitor_read_fd; /* fd to read transfer counts from other monitor */
int othermonitor_write_fd; /* fd to write transfer counts to other monitor */
unsigned int average_rate_window; /* time window in seconds for average rate calculations */
unsigned int history_interval; /* seconds between each average rate calc history entry */
pvdisplay_width_t width; /* screen width */