more update
This commit is contained in:
@@ -187,6 +187,9 @@ def collect_data(minutes, interval):
|
|||||||
|
|
||||||
for i in range(minutes):
|
for i in range(minutes):
|
||||||
# Collect data using system commands
|
# Collect data using system commands
|
||||||
|
if i == 0:
|
||||||
|
print("Minute:", end="", flush=True)
|
||||||
|
print(f" {i}", end="", flush=True)
|
||||||
|
|
||||||
zpoolIostat()
|
zpoolIostat()
|
||||||
coreifstat()
|
coreifstat()
|
||||||
@@ -198,10 +201,8 @@ def collect_data(minutes, interval):
|
|||||||
if is_freebsd():
|
if is_freebsd():
|
||||||
coreIostat_cpu()
|
coreIostat_cpu()
|
||||||
|
|
||||||
if i == 0:
|
if i == minutes:
|
||||||
print("Minute:", end="", flush=True)
|
break
|
||||||
|
|
||||||
print(f" {i}", end="", flush=True)
|
|
||||||
|
|
||||||
time.sleep(interval)
|
time.sleep(interval)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user