sync ports with The Matrix

This commit is contained in:
purplerain 2023-09-08 05:21:37 +00:00
parent ec769495ab
commit f5034afcba
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
3108 changed files with 91999 additions and 80269 deletions

View file

@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
# $OpenBSD: State.pm,v 1.38 2023/06/29 13:27:28 espie Exp $
# $OpenBSD: State.pm,v 1.39 2023/09/02 12:33:54 espie Exp $
#
# Copyright (c) 2010-2013 Marc Espie <espie@openbsd.org>
#
@ -308,21 +308,21 @@ sub add_build_info($state, @consumers)
next;
}
$i++;
last unless $i <= $state->{stats_used};
$time += $s->{time};
$sz += $s->{size};
$host = $s->{host}; # XXX we don't do anything with
# host information
last unless $i <= $state->{stats_used};
}
# no clean build found: partial stats are better than
# nothing
if (!defined $i) {
for my $s (@{$p->{stats}}) {
$i++;
last unless $i <= $state->{stats_used};
$time += $s->{time};
$sz += $s->{size};
$host = $s->{host};
last unless $i <= $state->{stats_used};
}
}
for my $c (@consumers) {