test
This commit is contained in:
@@ -179,6 +179,7 @@ def collect_data(minutes, interval):
|
|||||||
start_time = datetime.now()
|
start_time = datetime.now()
|
||||||
# Continuously collect data for the specified duration
|
# Continuously collect data for the specified duration
|
||||||
|
|
||||||
|
print("h3e")
|
||||||
if is_freebsd():
|
if is_freebsd():
|
||||||
gstat_command = ["gstat", "-C", "-s", "-d", "-o", "-p", "-I", "5s"]
|
gstat_command = ["gstat", "-C", "-s", "-d", "-o", "-p", "-I", "5s"]
|
||||||
with open("gstat.csv", "a") as output_file:
|
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)
|
process = subprocess.Popen(gstat_command, stdout=output_file)
|
||||||
|
|
||||||
for i in range(minutes):
|
for i in range(minutes):
|
||||||
# Collect data using system commands
|
print("here")
|
||||||
|
|
||||||
if i == 0:
|
if i == 0:
|
||||||
print("Minute:", end="")
|
print("Minute:", end="")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user