Package: ganglia-webfrontend
Version: 3.1.2
Severity: normal

Hello

The script 
/usr/share/ganglia-webfrontend/pie.php
creates the pie charts wrongly.

This happens if 100% of the nodes are up.

The legend shows in fact 100% nodes up, but the pie shows that 
100% of the nodes are down. 

I assume this is a rounding issue or an issue of  periodic boundary conditions
somewhere.

I added few lines which solves the problem for us. Here is the diff:

# diff pie.php pie_patched.php
153a154,157
>               if ( $this->angles[$i]>359.99 )
>               $this->angles[$i]=359.99;
>               if ( $this->angles[$i]<0.01 )
>               $this->angles[$i]=0.01;


-- System Information:
Debian Release: lenny
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.27.19 
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to