This commit is contained in:
Marc Mance
2024-07-30 18:01:50 -04:00
parent 9f783a177e
commit 39492f4e96

View File

@@ -179,6 +179,7 @@ def collect_data(minutes, interval):
start_time = datetime.now()
# Continuously collect data for the specified duration
print("h3e")
if is_freebsd():
gstat_command = ["gstat", "-C", "-s", "-d", "-o", "-p", "-I", "5s"]
with open("gstat.csv", "a") as output_file:
@@ -186,7 +187,8 @@ def collect_data(minutes, interval):
process = subprocess.Popen(gstat_command, stdout=output_file)
for i in range(minutes):
# Collect data using system commands
print("here")
if i == 0:
print("Minute:", end="")