move stat into if statement

This commit is contained in:
Marc Mance
2024-08-01 13:29:52 -04:00
parent 1b2e250847
commit 78359500fd

View File

@@ -405,9 +405,9 @@ def main():
"5s",
]
with open("gstat.csv", "a") as output_file:
# Create a Popen object with stdout redirected to the file
process = subprocess.Popen(gstat_command, stdout=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, stdout=output_file)
collect_data(minutes)