Skip Menu |

This queue is for tickets about the jmx4perl CPAN distribution.

Report information
The Basics
Id: 63545
Status: resolved
Priority: 0/
Queue: jmx4perl

People
Owner: roland [...] cpan.org
Requestors: matthias [...] tuxlife.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.73
Fixed in: 0.74



Subject: wrong normalize of ms
Hello, ms is unfortunately incorrectly normalized. I have added a Test-Patch for this Bug. Best regards, MaKe
Subject: jmx4perl.patch
diff -Nur jmx4perl-0.73.orig/t/40_check_jmx4perl.t jmx4perl-0.73/t/40_check_jmx4perl.t --- jmx4perl-0.73.orig/t/40_check_jmx4perl.t 2010-11-03 23:08:14.000000000 +0100 +++ jmx4perl-0.73/t/40_check_jmx4perl.t 2010-12-02 20:05:19.000000000 +0100 @@ -54,6 +54,9 @@ ($value,$unit) = $scheck->_normalize_value(1024*1024,"B"); is($value,1); is($unit,"MB"); +($value,$unit) = $scheck->_normalize_value("1000","ms"); +is($value,1); +is($unit,"s"); my $label = $scheck->_exit_message(code => &Nagios::Plugin::OK,mode => "numeric",value => "2.1", unit => "MB"); is($label,"Memory : Value 2.10 MB in range");
On Thu Dec 02 14:12:31 2010, MAKE wrote:

Show quoted text
> ms is unfortunately incorrectly normalized.
>
> I have added a Test-Patch for this Bug.

Thanks for spotting this. It is fixed in the latest GIT version and the fix will be contained in 0.74

...roland