From 61cd9f525aa236250b6768e6db2977c836c57d96 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Thu, 23 Mar 2006 12:01:21 +0000 Subject: Incorrect output when checking non-existent disk (John Rouillard - 1326050) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1349 f882894a-f735-0410-b71e-b25c423dba1c --- NPTest.pm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'NPTest.pm') diff --git a/NPTest.pm b/NPTest.pm index f1ff801e..106e8f12 100644 --- a/NPTest.pm +++ b/NPTest.pm @@ -596,6 +596,13 @@ sub output { } } +sub perf_output { + my $self = shift; + $_ = $self->{output}; + s/[^|]*\|//; + return $_; +} + sub testCmd { my $class = shift; my $command = shift or die "No command passed to testCmd"; -- cgit v1.2.3