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: