From f0c2eb748ad6e87a4cce12e0e04c0c58259a47ce Mon Sep 17 00:00:00 2001 From: Marc Mance Date: Tue, 30 Apr 2024 15:27:10 -0400 Subject: [PATCH] updated minutes --- collect.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/collect.sh b/collect.sh index 7321d02..d603021 100755 --- a/collect.sh +++ b/collect.sh @@ -1,11 +1,13 @@ #!/bin/bash -greeting="Running perfcollect for $1 minutes" +minutes=$1 + +greeting="Running perfcollect for $minutes minutes" echo "$greeting" echo "Will auto upload to iXsystem when completed." echo "Airgapped Systems will need to exfiltrate /root/*.csv" -python3 ./collect.zpool.iostat.py --minutes $1 +python3 ./collect.zpool.iostat.py --minutes $minutes start_time=$(date +%s) # Get start time in seconds since epoch duration=$(($1*60)) # Set duration in seconds (here: 5 minutes)