From 26a0505cb99794b37f388f9ee6b7ad142d626b44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georg=20Sch=C3=B6nberger?= Date: Mon, 6 Oct 2014 13:53:19 +0200 Subject: [PATCH] Fix length of header map checking --- check_lsi_raid | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check_lsi_raid b/check_lsi_raid index 7a32f53..ad22bb0 100755 --- a/check_lsi_raid +++ b/check_lsi_raid @@ -356,10 +356,10 @@ sub getLogicalDevices{ my @currmap; if($line =~ /^DG\/VD TYPE.*/){ @splittedLine = split(' ', $line); - if(scalar(@splittedLine)== 8){ + if(scalar(@splittedLine)== 9){ @currmap = @ldmap_a } - if(scalar(@splittedLine)== 9){ + if(scalar(@splittedLine)== 10){ @currmap = @ldmap_cc_a } }