]> granicus.if.org Git - php/commitdiff
MFH: Only show the first results
authorMarcus Boerger <helly@php.net>
Fri, 15 Nov 2002 14:48:55 +0000 (14:48 +0000)
committerMarcus Boerger <helly@php.net>
Fri, 15 Nov 2002 14:48:55 +0000 (14:48 +0000)
ext/standard/tests/time/001.phpt

index 98a8405e862bdf83a434ac847cadc786ce183317..e1a422957c26443cf8724a1a29f37daa6711c3a4 100644 (file)
@@ -16,8 +16,7 @@ for ($i=1;$i<=100000;$i++) {
        list($micro,$time)=explode(" ",microtime());
        if ($time > $last_t || ($time == $last_t && $micro > $last_m)) {
                $passed++;
-       } else {
-               $failed++;
+       } else if ($failed++ <=10) {
                $result .= sprintf('%06d', $i).": $time $micro < $last_t $last_m\n";
        }
        $last_m = $micro;