[pkg-nagios-changes] [Git][nagios-team/pkg-nagvis][master] 4 commits: New upstream version 1.9.33

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Tue May 24 13:07:01 BST 2022



Bas Couwenberg pushed to branch master at Debian Nagios Maintainer Group / pkg-nagvis


Commits:
62313c68 by Bas Couwenberg at 2022-05-24T14:00:17+02:00
New upstream version 1.9.33
- - - - -
a2d17f47 by Bas Couwenberg at 2022-05-24T14:00:25+02:00
Update upstream source from tag 'upstream/1.9.33'

Update to upstream version '1.9.33'
with Debian dir 5f80e43206c7a3a9da9d6ca064ab04460720643c
- - - - -
6f3af4c2 by Bas Couwenberg at 2022-05-24T14:00:44+02:00
New upstream release.

- - - - -
f3b25cb4 by Bas Couwenberg at 2022-05-24T14:01:31+02:00
Set distribution to unstable.

- - - - -


4 changed files:

- ChangeLog
- debian/changelog
- share/frontend/nagvis-js/js/ElementLine.js
- share/server/core/defines/global.php


Changes:

=====================================
ChangeLog
=====================================
@@ -1,3 +1,10 @@
+1.9.33
+Frontend:
+  * FIX: Weathermap lines of Checkmk monitored network interfaces displaying
+    network traffic in bytes instead of bits
+  * FIX: Weathermap lines of Checkmk use 1000 as base instead of 1024
+    (#315 Thanks to soeren-gugel)
+
 1.9.32
 Core:
   * FIX: Fix PHP 8.1 incompatibility


=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+nagvis (1:1.9.33-1) unstable; urgency=medium
+
+  * Team upload.
+  * New upstream release.
+
+ -- Bas Couwenberg <sebastic at debian.org>  Tue, 24 May 2022 14:01:21 +0200
+
 nagvis (1:1.9.32-1) unstable; urgency=medium
 
   * Team upload.


=====================================
share/frontend/nagvis-js/js/ElementLine.js
=====================================
@@ -818,7 +818,7 @@ var ElementLine = Element.extend({
         // Check_MK if/if64 checks support switching between bytes/bits.
         var display_bits = false;
 
-        if (output.match('In: [0-9].*[Bit|bit]/s.*Out: [0-9]+')) {
+        if (output.match('In: [0-9].*(Bit|bit)/s.*Out: [0-9]+')) {
             display_bits=true;
         }
 
@@ -861,10 +861,10 @@ var ElementLine = Element.extend({
     /**
      * Transform bits in a perfdata set to a human readable value
      */
-    perfdataCalcBitsReadable: function(set) {
-        var KB   = 1024;
-        var MB   = 1024 * 1024;
-        var GB   = 1024 * 1024 * 1024;
+    perfdataCalcBitsReadable: function(set, kiloMultiplier=1000) {
+        var KB   = kiloMultiplier;
+        var MB   = kiloMultiplier * kiloMultiplier;
+        var GB   = kiloMultiplier * kiloMultiplier * kiloMultiplier;
         if(set[1] > GB) {
             set[1] /= GB
             set[2]  = 'Gbit/s'
@@ -884,10 +884,10 @@ var ElementLine = Element.extend({
     /**
      * Transform bytes in a perfdata set to a human readable value
      */
-    perfdataCalcBytesReadable: function(set) {
-        var KB   = 1024;
-        var MB   = 1024 * 1024;
-        var GB   = 1024 * 1024 * 1024;
+    perfdataCalcBytesReadable: function(set, kiloMultiplier=1000) {
+        var KB   = kiloMultiplier;
+        var MB   = kiloMultiplier * kiloMultiplier;
+        var GB   = kiloMultiplier * kiloMultiplier * kiloMultiplier;
         if(set[1] > GB) {
             set[1] /= GB
             set[2]  = 'GB/s'


=====================================
share/server/core/defines/global.php
=====================================
@@ -23,7 +23,7 @@
  *****************************************************************************/
  
 // NagVis Version
-define('CONST_VERSION', '1.9.32');
+define('CONST_VERSION', '1.9.33');
 
 // Set PHP error handling to standard level
 // Different levels for php versions below 5.1 because PHP 5.1 reports



View it on GitLab: https://salsa.debian.org/nagios-team/pkg-nagvis/-/compare/92b69702d76aee19dc15b02351c3aa4d78fb2f48...f3b25cb4449bdbd7dc0426d77df60ba690c0a0e0

-- 
View it on GitLab: https://salsa.debian.org/nagios-team/pkg-nagvis/-/compare/92b69702d76aee19dc15b02351c3aa4d78fb2f48...f3b25cb4449bdbd7dc0426d77df60ba690c0a0e0
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-nagios-changes/attachments/20220524/4a0943d4/attachment-0001.htm>


More information about the pkg-nagios-changes mailing list