Revision: 1748
Author: olavmrk
Date: Tue Sep 8 04:36:00 2009
Log: statistics_Graph_GoogleCharts: round->intval, to ensure that the
values are rounded down.
http://code.google.com/p/simplesamlphp/source/detail?r=1748
Modified:
/trunk/modules/statistics/lib/Graph/GoogleCharts.php
=======================================
--- /trunk/modules/statistics/lib/Graph/GoogleCharts.php Tue Jun 23
06:56:10 2009
+++ /trunk/modules/statistics/lib/Graph/GoogleCharts.php Tue Sep 8
04:36:00 2009
@@ -45,8 +45,8 @@
foreach($values as $k => $v){
if($v >= 0 && $v <= 100){
- $first = substr($extended_table, round(
($delta*$v/100) / $size),1);
- $second = substr($extended_table, round(
($delta*$v/100) % $size), 1);
+ $first = substr($extended_table, intval(
($delta*$v/100) / $size),1);
+ $second = substr($extended_table, intval(
($delta*$v/100) % $size), 1);
$chardata .= "$first$second";
#echo '<p>encoding ' . $v . ' to ' . $first . '
' . $second . '';
} else {
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"simpleSAMLphp commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/simplesamlphp-commits?hl=en
-~----------~----~----~----~------~----~------~--~---