Add a total stoppage time counter to the per-fd watchfd structure (#169).

This commit is contained in:
Andrew Wood
2025-10-28 23:34:26 +00:00
parent c7a6f85dd2
commit 5aff62414a
+1
View File
@@ -503,6 +503,7 @@ struct pvwatchfd_s {
off_t position; /* position last seen at */
struct timespec start_time; /* time we started watching the fd */
struct timespec end_time; /* time the fd was marked as closed */
struct timespec total_stoppage_time; /* total time spent stopped */
pid_t watch_pid; /* PID the fd belongs to */
int watch_fd; /* fd to watch */
bool closed; /* true once the fd is closed */