diff --git a/collect.sh b/collect.sh index 5d46e8f..b178f37 100755 --- a/collect.sh +++ b/collect.sh @@ -10,15 +10,15 @@ echo "" -iostat="python3 ixiostat.py " -gstat="gstat -C -s -d -o -p -I 60s >> /root/gstat.csv" iterations=$1 for (( i=1; i<=$iterations; i++ )); do # Execute the command - $gstat - $iostat +python3 ixiostat.py +gstat -C -s -d -o -p -I 60s >> /root/gstat.csv + + # Wait for 60 seconds before the next iteration sleep 60