Author:   Lars Michelsen <[email protected]>
Date:     Fri Feb 15 18:10:00 2013 +0100
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Fri Feb 15 18:10:00 2013 +0100

Added b/s in case of low traffic

---

 .../frontend/nagvis-js/js/NagVisStatefulObject.js  |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/share/frontend/nagvis-js/js/NagVisStatefulObject.js 
b/share/frontend/nagvis-js/js/NagVisStatefulObject.js
index e904123..ec4b8bd 100644
--- a/share/frontend/nagvis-js/js/NagVisStatefulObject.js
+++ b/share/frontend/nagvis-js/js/NagVisStatefulObject.js
@@ -687,6 +687,8 @@ var NagVisStatefulObject = NagVisObject.extend({
         } else if(set[1] > KB) {
             set[1] /= KB
             set[2]  = 'Kbit/s'
+        } else {
+            set[2]  = 'bit/s'
         }
         set[1] = Math.round(set[1]*100)/100;
         return set;
@@ -712,6 +714,8 @@ var NagVisStatefulObject = NagVisObject.extend({
         } else if(set[1] > KB) {
             set[1] /= KB
             set[2]  = 'KB/s'
+        } else {
+            set[2]  = 'B/s'
         }
         set[1] = Math.round(set[1]*100)/100;
         return set;


------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to