Revision: 1466
http://mrbs.svn.sourceforge.net/mrbs/?rev=1466&view=rev
Author: cimorrison
Date: 2010-09-23 10:09:47 +0000 (Thu, 23 Sep 2010)
Log Message:
-----------
Limited any floating point durations in email notifications and view_entry to 3
decimal places (previously there could be 11 decimal places)
Modified Paths:
--------------
mrbs/trunk/web/functions.inc
Modified: mrbs/trunk/web/functions.inc
===================================================================
--- mrbs/trunk/web/functions.inc 2010-09-23 09:50:14 UTC (rev 1465)
+++ mrbs/trunk/web/functions.inc 2010-09-23 10:09:47 UTC (rev 1466)
@@ -174,6 +174,13 @@
{
$units = "seconds";
}
+
+ // Limit any floating point values to three decimal places
+ if (is_float($dur))
+ {
+ $dur = sprintf('%.3f', $dur);
+ }
+
// Translate into local language if required
if ($translate)
{
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits