From 489df48f9d1891b46ae4be911080ab4667058f2d Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Thu, 8 Feb 2007 15:58:15 +0000 Subject: Fixed warnings when no uom specified for add_perfdata git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/Nagios-Plugin/trunk@1618 f882894a-f735-0410-b71e-b25c423dba1c --- lib/Nagios/Plugin/Performance.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Nagios/Plugin/Performance.pm b/lib/Nagios/Plugin/Performance.pm index 6e4cd03..fc1c0bc 100644 --- a/lib/Nagios/Plugin/Performance.pm +++ b/lib/Nagios/Plugin/Performance.pm @@ -22,7 +22,7 @@ struct "Nagios::Plugin::Performance" => { sub perfoutput { my $self = shift; - my $output = $self->label."=".$self->value.$self->uom.";".$self->threshold->warning.";".$self->threshold->critical; + my $output = $self->label."=".$self->value. ($self->uom || "") .";".$self->threshold->warning.";".$self->threshold->critical; return $output; } -- cgit v1.2.3-74-g34f1