runTime == $b->runTime) { return 0; } return ($a->runTime < $b->runTime) ? 1 : -1; } function cmpName($a, $b) { if ($a->name == $b->name) { return 0; } return ($a->name < $b->name) ? -1 : 1; } function cmpLockTime($a, $b) { if ($a->lockTime == $b->lockTime) { return 0; } return ($a->lockTime < $b->lockTime) ? -1 : 1; } function cmpMsgCount($a, $b) { if ($a->msgCount == $b->msgCount) { return 0; } return ($a->msgCount < $b->msgCount) ? 1 : -1; } $sortMethod = $_GET["sort"]; if (!$sortMethod) { $sortMethod = "cmpName"; } $commandCount = 10; $tests = array(); $testPath = "evol/20131009/"; $dir = opendir($testPath); while ($file = readdir($dir)) { if (eregi("[0-9]{3}.json", $file)) { array_push($tests, new TestViewSequenz($testPath . $file)); } } echo ""; echo ""; usort($tests, $sortMethod); foreach ($tests as $testcase) { echo ""; echo ""; echo ""; } echo "
SettingcommandRunetimeLocktimeMsgcountLocktime per MsgLocktime per Command
path\" target=\"_blank\">$testcase->name$commandCount$testcase->runTime$testcase->lockTime$testcase->msgCount" . $testcase->lockTime / $testcase->msgCount . "" . $testcase->lockTime / $commandCount . "
"; ?>