From ceb81e7d7856a183928f91f1ec47e5f8f2c19236 Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Mon, 10 Jan 2022 10:36:25 -0800 Subject: [PATCH] BuildDiff: actual list reference to $builds2 --- src/lib/Hydra/Helper/BuildDiff.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Helper/BuildDiff.pm b/src/lib/Hydra/Helper/BuildDiff.pm index ad5cf59b..612ecbf3 100644 --- a/src/lib/Hydra/Helper/BuildDiff.pm +++ b/src/lib/Hydra/Helper/BuildDiff.pm @@ -41,7 +41,7 @@ sub buildDiff { my $aborted = $build->finished != 0 && ($build->buildstatus == 3 || $build->buildstatus == 4); my $d; my $found = 0; - while ($n < scalar($builds2)) { + while ($n < scalar(@{$builds2})) { my $build2 = @{$builds2}[$n]; my $d = cmpBuilds($build, $build2); last if $d == -1;