Will someone help me submit this bugfix? Thanks.

Module: ganglia-web
File: stacked.php
Description: This bug happens when showing stacked graph of custom metrics
on selected few hosts. In this case, count($hosts) is regarded as the count
of valid ones, which results in a overwhelming value of $cx, leading to
blank color 0xFFFFFF.
Diff:

$ diff stacked.php stacked.php2
98d97
< $i = 0;
100,101c99
<     $cx = $i/(1+count($hosts));
<     $i++;
---
>     $cx = $index/(1+count($hosts));

-- 
Regards,
Hydrogenesis
oxygenera...@gmail.com
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to