Skip to content

Commit

Permalink
Update iostat
Browse files Browse the repository at this point in the history
  • Loading branch information
agruza authored Dec 5, 2018
1 parent d2857d7 commit d91f5ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PAT-collecting-data/WORKER_scripts/instruments/iostat
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ CMD=$3

function run()
{
/usr/bin/iostat -x -k -d $SAMPLING_INTERVAL | awk -v host=$(hostname) '(!/^$/){now=strftime("%s ");if(/Device/){if($1 == "Device"){gsub("Device", "Device:");}{print "HostName","TimeStamp", $0} else{ if($0 && !/Linux/) print host, now $0}}; fflush()' > $OUTDIR/iostat &
/usr/bin/iostat -x -k -d $SAMPLING_INTERVAL | awk -v host=$(hostname) '(!/^$/){now=strftime("%s ");if(/Device/){if($1 == "Device"){gsub("Device", "Device:");}{print "HostName","TimeStamp", $0}} else{ if($0 && !/Linux/) print host, now $0}}; fflush()' > $OUTDIR/iostat &
}

case $CMD in
Expand Down

0 comments on commit d91f5ec

Please sign in to comment.