Skip to content

Commit d3a416d

Browse files
authored
Merge pull request #11 from volt-test/Fix/parsing-duration
Fix Parsing duration
2 parents a0324bd + 013a08b commit d3a416d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TestResult.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ private function parseOutput(): void
5050
private function parseMainMetrics(): void
5151
{
5252
// Duration
53-
if (preg_match('/Duration:\s+([\d.]+s)/', $this->rawOutput, $matches)) {
53+
if (preg_match('/Duration:\s+([\d.]+(?:ms|s|m|hr))/', $this->rawOutput, $matches)) {
5454
$this->parsedResults['duration'] = $matches[1];
5555
}
5656

0 commit comments

Comments
 (0)