From 5afc0c39d589ec4632b116f198025bc2a4dfb908 Mon Sep 17 00:00:00 2001 From: Marc Mance Date: Fri, 2 Aug 2024 15:23:35 -0400 Subject: [PATCH] update --- collect.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/collect.py b/collect.py index 6a6a512..d719b2b 100644 --- a/collect.py +++ b/collect.py @@ -436,11 +436,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", @@ -453,9 +453,9 @@ def main(): "gstat.csv", ] - # with open("gstat.csv", "a") as output_file: - # Create a Popen object with stdout redirected to the file - process = subprocess.Popen(gstat_command, shell=True) + with open("gstat.csv", "a") as output_file: + # Create a Popen object with stdout redirected to the file + process = subprocess.Popen(gstat_command, shell=True) collect_data(minutes)