This commit is contained in:
Marc Mance
2024-08-02 15:23:35 -04:00
parent 566f607851
commit 5afc0c39d5

View File

@@ -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,7 +453,7 @@ def main():
"gstat.csv",
]
# with open("gstat.csv", "a") as output_file:
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)