updated print statement
This commit is contained in:
@@ -12,6 +12,7 @@ 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)
|
||||
|
||||
echo "running gstat"
|
||||
gstat -C -s -d -o -p -I 60s > /root/gstat.csv & # Run the command in the background
|
||||
|
||||
while [[ $(($(date +%s) - $start_time)) -lt $duration ]]; do
|
||||
|
||||
Reference in New Issue
Block a user