Revision: 1577
http://mrbs.svn.sourceforge.net/mrbs/?rev=1577&view=rev
Author: cimorrison
Date: 2010-11-03 11:08:49 +0000 (Wed, 03 Nov 2010)
Log Message:
-----------
Removed any trailing decimal zeros from the duration
Modified Paths:
--------------
mrbs/trunk/web/functions.inc
Modified: mrbs/trunk/web/functions.inc
===================================================================
--- mrbs/trunk/web/functions.inc 2010-11-03 10:40:57 UTC (rev 1576)
+++ mrbs/trunk/web/functions.inc 2010-11-03 11:08:49 UTC (rev 1577)
@@ -179,6 +179,7 @@
if (is_float($dur))
{
$dur = sprintf('%.3f', $dur);
+ $dur = (string) (float) $dur; // removes trailing zeros
}
// Translate into local language if required
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Achieve Improved Network Security with IP and DNS Reputation.
Defend against bad network traffic, including botnets, malware,
phishing sites, and compromised hosts - saving your company time,
money, and embarrassment. Learn More!
http://p.sf.net/sfu/hpdev2dev-nov
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits