Module: nagvis Branch: master Commit: c41ad9968a54bbf115e492be4ba722def87794aa URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=c41ad9968a54bbf115e492be4ba722def87794aa
Author: Lars Michelsen <[email protected]> Date: Sat Aug 28 11:08:46 2010 +0200 Code Formating --- share/frontend/nagvis-js/js/lines.js | 10 ++-------- 1 files changed, 2 insertions(+), 8 deletions(-) diff --git a/share/frontend/nagvis-js/js/lines.js b/share/frontend/nagvis-js/js/lines.js index 51ca72e..62eebdd 100644 --- a/share/frontend/nagvis-js/js/lines.js +++ b/share/frontend/nagvis-js/js/lines.js @@ -286,7 +286,7 @@ function drawNagVisLine(objectId, type, cuts, x1, y1, x2, y2, z, width, colorFil } } -/* +/** * Split perfdata into mutlidimensional array * Each 1st dimension is a set of perfdata such as 'inUsage=19.34%;85;98') * The 2nd dimension is each set broken apart (label, value, uom, etc.) @@ -355,20 +355,14 @@ function splicePerfdata(nagiosPerfdata) { } } - /** +/** * Sets fill color for bandwidth based lines * * @param Number Percent value * @return String Hex value for fill color * @author Greg Frater <[email protected]> - * */ function getColorFill(percent) { - // set color based on percent level - var percent; - var color = ''; - - eventlog("test", "debug", "Percent:" + percent); if(percent >= 0 && percent <= 10) { // purple return '#8c00ff'; ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
