diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2007-02-08 15:58:15 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2007-02-08 15:58:15 +0000 |
commit | 489df48f9d1891b46ae4be911080ab4667058f2d (patch) | |
tree | fea89ac882fe294d9c73b36bb3133d75cfb89caf /lib/Nagios/Plugin | |
parent | 0e41613e9f547ab97365329572555936e84f77b2 (diff) | |
download | monitoring-plugin-perl-489df48f9d1891b46ae4be911080ab4667058f2d.tar.gz |
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
Diffstat (limited to 'lib/Nagios/Plugin')
-rw-r--r-- | lib/Nagios/Plugin/Performance.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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" => { | |||
22 | 22 | ||
23 | sub perfoutput { | 23 | sub perfoutput { |
24 | my $self = shift; | 24 | my $self = shift; |
25 | my $output = $self->label."=".$self->value.$self->uom.";".$self->threshold->warning.";".$self->threshold->critical; | 25 | my $output = $self->label."=".$self->value. ($self->uom || "") .";".$self->threshold->warning.";".$self->threshold->critical; |
26 | return $output; | 26 | return $output; |
27 | } | 27 | } |
28 | 28 | ||