From fa646b1f5393504442b62d3446b66ba978f16bba Mon Sep 17 00:00:00 2001 From: zab Date: Wed, 28 Apr 2004 21:36:52 +0000 Subject: [PATCH] - more consistently get the opc when graphing rpcs --- lustre/scripts/graph-rpcs.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lustre/scripts/graph-rpcs.sh b/lustre/scripts/graph-rpcs.sh index 83b7815..d2e900a 100755 --- a/lustre/scripts/graph-rpcs.sh +++ b/lustre/scripts/graph-rpcs.sh @@ -127,7 +127,9 @@ awk -F"[$IFS:]" ' tvtime = $4 pname = $20 xid = $23 - opc = $26 + # sometimes the nid has our seperators + # in it, so we hope the last field is the op code + opc = $NF # the y position of the rpc bar in the graph is determined # by the category which we use the process name for. when @@ -176,7 +178,7 @@ awk -F"[$IFS:]" ' tvtime = $4 pname = $20 xid = $23 - opc = $26 + opc = $NF total_rpcs++; -- 1.8.3.1