From 6e79655a28d1e00c2d98cf40b493c078eccf527e Mon Sep 17 00:00:00 2001 From: Marc Mance Date: Fri, 2 Aug 2024 16:00:32 -0400 Subject: [PATCH] moving order back --- collect.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/collect.py b/collect.py index cd20ac8..8193e90 100644 --- a/collect.py +++ b/collect.py @@ -433,8 +433,6 @@ def main(): try: print("Starting Collection") - collect_data(minutes) - # Collect data if is_freebsd(): # timeout = f"{minutes}m" @@ -452,6 +450,8 @@ def main(): # Create a Popen object with stdout redirected to the file process = subprocess.Popen(gstat_command, stdout=output_file) + collect_data(minutes) + # # kill gstat if freebsd if is_freebsd(): process.terminate()