[Nagiosplug-checkins] Nagios-Plugin/lib/Nagios/Plugin Performance.pm, 1.9, 1.10

Ton Voon tonvoon at users.sourceforge.net
Thu Feb 8 16:58:17 CET 2007


Update of /cvsroot/nagiosplug/Nagios-Plugin/lib/Nagios/Plugin
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv8438/lib/Nagios/Plugin

Modified Files:
	Performance.pm 
Log Message:
Fixed warnings when no uom specified for add_perfdata


Index: Performance.pm
===================================================================
RCS file: /cvsroot/nagiosplug/Nagios-Plugin/lib/Nagios/Plugin/Performance.pm,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- Performance.pm	16 Oct 2006 08:13:06 -0000	1.9
+++ Performance.pm	8 Feb 2007 15:58:14 -0000	1.10
@@ -22,7 +22,7 @@
 
 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;
 }
 





More information about the Commits mailing list