1
0
mirror of https://github.com/php/php-src.git synced 2026-04-02 13:43:02 +02:00

MFH: fix gettimeofday() tests to not fail if the same time is

returned by successive calls.
This commit is contained in:
Joe Orton
2004-08-31 11:49:19 +00:00
parent b8c51d4614
commit 85f8b2a830

View File

@@ -17,7 +17,7 @@ set_time_limit(0);
for ($i=1;$i<=100000;$i++) {
list($micro,$time)=explode(" ",microtime());
if ($time > $last_t || ($time == $last_t && $micro > $last_m)) {
if ($time > $last_t || ($time == $last_t && $micro >= $last_m)) {
$passed++;
} else if ($failed++ <=10) {
$result .= sprintf('%06d', $i).": $time $micro < $last_t $last_m\n";