diff --git a/www/www.reactos.org/testman/webservice/buildbot_aggregator.php b/www/www.reactos.org/testman/webservice/buildbot_aggregator.php index 726a5708..35db59e0 100644 --- a/www/www.reactos.org/testman/webservice/buildbot_aggregator.php +++ b/www/www.reactos.org/testman/webservice/buildbot_aggregator.php @@ -77,12 +77,12 @@ if (feof($fp)) throw new ErrorMessageException("Found no Git revision in this log!"); - // Find the first 3rd stage boot. + // Find the first 3rd stage boot and count all *re*boots happening in between. while (!feof($fp)) { $line = fgets($fp); - if (preg_match("#^\[SYSREG\] Running stage ([1-3])#", $line, $matches)) + if (preg_match("#^\[SYSREG\] Running stage ([2-3])#", $line, $matches)) { $perf["reboots"]++; if ($matches[1] == "3") @@ -106,9 +106,6 @@ if (is_numeric($cycles[2])) $perf["boot_cycles"] = $cycles[2]; - // We're in the 3rd stage, increase the reboot count. - $perf["reboots"]++; - break; } }