marco 2004/09/14 03:11:29
Modified: src/log4php/layouts LoggerLayoutTTCC.php
Log:
Fixed microseconds output when changing from 999ms to second (thanks to
Sergio Strampelli).
Revision Changes Path
1.3 +2 -2 logging-log4php/src/log4php/layouts/LoggerLayoutTTCC.php
Index: LoggerLayoutTTCC.php
===================================================================
RCS file: /home/cvs/logging-log4php/src/log4php/layouts/LoggerLayoutTTCC.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- LoggerLayoutTTCC.php 8 Jun 2004 21:11:33 -0000 1.2
+++ LoggerLayoutTTCC.php 14 Sep 2004 10:11:29 -0000 1.3
@@ -196,7 +196,7 @@
$format = strftime($this->dateFormat, (int)$timeStamp);
if ($this->microSecondsPrinting) {
- $usecs = round(($timeStamp - (int)$timeStamp) * 1000);
+ $usecs = floor(($timeStamp - (int)$timeStamp) * 1000);
$format .= sprintf(',%03d', $usecs);
}