From ec7e630e6f531f61def20d1cb6942e2230bee11c Mon Sep 17 00:00:00 2001
From: zab <zab>
Date: Sat, 24 Apr 2004 04:13:30 +0000
Subject: [PATCH] - have graph-rpcs exit if it doesn't find RPCs in the log

---
 lustre/scripts/graph-rpcs.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lustre/scripts/graph-rpcs.sh b/lustre/scripts/graph-rpcs.sh
index 08a2d24609..83b7815dba 100755
--- a/lustre/scripts/graph-rpcs.sh
+++ b/lustre/scripts/graph-rpcs.sh
@@ -221,6 +221,8 @@ awk -F"[$IFS:]" '
 
 . $awk_vars
 
+[ ! -e $tmpdir/data ] && die "no RPCS found in $log"
+
 to_pl 	'#proc getdata
 	data:'
 
-- 
GitLab