From ceaf1119cfd819b6616f155c48b436952c7acc66 Mon Sep 17 00:00:00 2001 From: Marc Mance Date: Tue, 30 Jul 2024 18:16:53 -0400 Subject: [PATCH] edit --- collect.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/collect.py b/collect.py index f3519a0..eb401ec 100644 --- a/collect.py +++ b/collect.py @@ -175,10 +175,8 @@ def zpoolIostat(): def collect_data(minutes): - start_time = datetime.now() - # Continuously collect data for the specified duration - if is_freebsd(): + print("Starting gstat collection.") gstat_command = ["gstat", "-C", "-s", "-d", "-o", "-p", "-I", "5s"] with open("gstat.csv", "a") as output_file: # Create a Popen object with stdout redirected to the file @@ -209,6 +207,7 @@ def collect_data(minutes): # kill gstat if freebsd if is_freebsd(): + print("Killing gstat process.") process.kill()