updated duration

This commit is contained in:
Marc Mance
2024-04-30 15:46:15 -04:00
parent ea6bd55171
commit 6eddb086e8

View File

@@ -10,7 +10,7 @@ echo "Airgapped Systems will need to exfiltrate /root/*.csv"
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)
duration=$(($1/60)) # Set duration in seconds (here: 5 minutes)
echo "running gstat"
gstat -C -s -d -o -p -I 60s > /root/gstat.csv & # Run the command in the background