Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Bring back initial reading of IOPSRead and IOPSWrite
  • Loading branch information
Michael Ott committed Jun 27, 2022
commit 53ca7e5ca39a5629df172dea25547690d16f53d8
6 changes: 6 additions & 0 deletions hetrixtools_agent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,12 @@ do
done
declare -A IOPSRead
declare -A IOPSWrite
for i in "${!vDISKs[@]}"
do
IOPSRead[$i]=$(echo "$diskstats" | grep -w "${vDISKs[$i]}" | awk '{print $6}')
IOPSWrite[$i]=$(echo "$diskstats" | grep -w "${vDISKs[$i]}" | awk '{print $10}')
done

# Collect data loop
for X in $(seq $RunTimes)
do
Expand Down