google-code-export / mysql-cacti-templates

Automatically exported from code.google.com/p/mysql-cacti-templates
GNU General Public License v2.0
1 stars 0 forks source link

get_stats_free() issue #102

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In ss_get_by_ssh.php in function get_start_free() this is used:

$result['STAT_memused']   = sprintf('%u', $words[2] - $words[4] - $words[5] - 
$words[6]);

This is returning wrong results if memused is bigger than 4294967295. 

The fix is to remove sprintf().

Original issue reported on code.google.com by pec...@gmail.com on 15 Dec 2009 at 11:55

GoogleCodeExporter commented 9 years ago
Thanks.  I solved similar problems in the MySQL templates -- PHP does not like 
math
on big numbers :-(  Unfortunately it's harder to have a real test suite for this
script.  I'm going to try.  But in the meantime I'll fix this.

Original comment by baron.schwartz on 15 Dec 2009 at 11:59

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r368.

Original comment by baron.schwartz on 26 Dec 2009 at 9:07