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");