From 1b2e250847868b34d5959ce7fa9aaaf9852b89ee Mon Sep 17 00:00:00 2001 From: Marc Mance Date: Thu, 1 Aug 2024 13:05:42 -0400 Subject: [PATCH] update terminate --- collect.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/collect.py b/collect.py index 38723cd..2b73be9 100644 --- a/collect.py +++ b/collect.py @@ -390,10 +390,11 @@ def main(): # Collect data if is_freebsd(): - timeout = f"{minutes}m" + # timeout = f"{minutes}m" + # "timeout", + # timeout, + gstat_command = [ - "timeout", - timeout, "gstat", "-C", "-s", @@ -412,6 +413,7 @@ def main(): # kill gstat if freebsd if is_freebsd(): + process.terminate() process.kill() except KeyboardInterrupt: