Author:   Lars Michelsen <[email protected]>
Date:     Thu Nov 24 09:41:29 2011 +0100
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Thu Nov 24 09:41:29 2011 +0100

Fixed variable type

---

 share/frontend/nagvis-js/js/NagVisLine.js          |    2 +-
 .../frontend/nagvis-js/js/NagVisStatefulObject.js  |    2 +-
 share/frontend/nagvis-js/js/lines.js               |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/share/frontend/nagvis-js/js/NagVisLine.js 
b/share/frontend/nagvis-js/js/NagVisLine.js
index a9eb88e..404e94f 100644
--- a/share/frontend/nagvis-js/js/NagVisLine.js
+++ b/share/frontend/nagvis-js/js/NagVisLine.js
@@ -120,7 +120,7 @@ var NagVisLine = NagVisStatelessObject.extend({
                        this.conf.z, width, colorFill, null, null, colorBorder,
                        this.needsLineHoverArea(),
                        (this.conf.line_label_show && this.conf.line_label_show 
=== '1'),
-                       this.conf.line_label_y_offset);
+                       parseInt(this.conf.line_label_y_offset));
     },
 
     remove: function () {
diff --git a/share/frontend/nagvis-js/js/NagVisStatefulObject.js 
b/share/frontend/nagvis-js/js/NagVisStatefulObject.js
index 2724345..7b4f563 100644
--- a/share/frontend/nagvis-js/js/NagVisStatefulObject.js
+++ b/share/frontend/nagvis-js/js/NagVisStatefulObject.js
@@ -607,7 +607,7 @@ var NagVisStatefulObject = NagVisObject.extend({
                        this.conf.z, width, colorFill, colorFill2, setPerfdata, 
colorBorder,
                        this.needsLineHoverArea(),
                        (this.conf.line_label_show && this.conf.line_label_show 
=== '1'),
-                       this.conf.line_label_y_offset);
+                       parseInt(this.conf.line_label_y_offset));
     },
 
     /**
diff --git a/share/frontend/nagvis-js/js/lines.js 
b/share/frontend/nagvis-js/js/lines.js
index db9cabd..1d53039 100644
--- a/share/frontend/nagvis-js/js/lines.js
+++ b/share/frontend/nagvis-js/js/lines.js
@@ -338,7 +338,7 @@ function drawNagVisLine(objectId, lineType, cuts, x, y, z, 
width, colorFill, col
             }
 
             // Take the configured line width into account
-            yOffset = yOffset + width / 2;
+            yOffset = yOffset + parseInt(width / 2);
 
             // perfdataA contains the percentage info
             // perfdataB contains the bandwith info


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to