avoid thread count Pattern matching if not running multiple thread counts

This commit is contained in:
Dave Brosius 2015-12-26 22:43:04 -05:00
parent 4d1f8e4045
commit 4675b2089f
1 changed files with 5 additions and 5 deletions

View File

@ -143,16 +143,16 @@ public class StressGraph
if (line.startsWith("Thread count was not specified"))
runningMultipleThreadCounts = true;
// Detect thread count:
Matcher tc = threadCountMessage.matcher(line);
if (tc.matches())
if (runningMultipleThreadCounts)
{
if (runningMultipleThreadCounts)
// Detect thread count:
Matcher tc = threadCountMessage.matcher(line);
if (tc.matches())
{
currentThreadCount = tc.group(2);
}
}
// Detect mode changes
if (line.equals(StressMetrics.HEAD))
{