From 5aff62414a1909abaffbe45284f8d2b5b7ce5a57 Mon Sep 17 00:00:00 2001 From: Andrew Wood Date: Tue, 28 Oct 2025 23:34:26 +0000 Subject: [PATCH] Add a total stoppage time counter to the per-fd watchfd structure (#169). --- src/include/pv-internal.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/include/pv-internal.h b/src/include/pv-internal.h index d69e620..2123bf0 100644 --- a/src/include/pv-internal.h +++ b/src/include/pv-internal.h @@ -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 */