Small change to generation time formatting to make all pages the same time. Makes apachebench not screw up.
authorDan Fuhry <dan@enanocms.org>
Wed, 25 Apr 2012 02:03:38 -0400
changeset 1361 26e80700ff1d
parent 1360 570abc94bd7f
child 1364 68c17d935750
Small change to generation time formatting to make all pages the same time. Makes apachebench not screw up.
includes/template.php
--- a/includes/template.php	Wed Apr 25 02:01:55 2012 -0400
+++ b/includes/template.php	Wed Apr 25 02:03:38 2012 -0400
@@ -1447,7 +1447,7 @@
 			
 			$f = microtime_float();
 			$f = $f - $_starttime;
-			$f = round($f, 2);
+			$f = sprintf("%.02f", $f);
 			
 			$t_loc = $lang->get('page_msg_stats_gentime_short', array('time' => $f));
 			$t_loc_long = $lang->get('page_msg_stats_gentime_long', array('time' => $f));