From d91f5ecae94c93eb16b23dfbe56855ddca9b9a54 Mon Sep 17 00:00:00 2001 From: Agata Gruza Date: Wed, 5 Dec 2018 10:47:42 -0800 Subject: [PATCH] Update iostat --- PAT-collecting-data/WORKER_scripts/instruments/iostat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PAT-collecting-data/WORKER_scripts/instruments/iostat b/PAT-collecting-data/WORKER_scripts/instruments/iostat index 8f9ff8f..aabcb5f 100755 --- a/PAT-collecting-data/WORKER_scripts/instruments/iostat +++ b/PAT-collecting-data/WORKER_scripts/instruments/iostat @@ -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