From nobody Mon Feb 9 17:37:44 2026 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1555605200; cv=none; d=zoho.com; s=zohoarc; b=CtfrQhAlZt+PnaN2c+pMd+TvKdGc2v7TGQwLoLLF5SBX9Xq9EFRDpO6fWUFlvxldARB7/qx/C96d1Hynd9GBJCAk/rZ5aR3dHVDJMQ4yT58dZWCRxVts+XuzqFLvo++1+zxUQVjaK3orntS7fXXiA3n5DA2Dk1B9GH7WDVIWlbI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1555605200; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=yVz9n1A9J9Y4MQdkcxTzhF0Hmuxvdperu43vAsLNNLg=; b=PPKkRCNYvguZbmtsqJnx61tR10spI0tYylJ0/xrLtxOt5DNCbjJC5tusK02bIa+Jlx7CqTYd+DY8khpSs1ETz8Yyg2VgIqg6XB++DYNmA7epGcpJfX3o4oFuU1LdZpmlqtvMiDZApQo0W8ZKS+HDQgML1qdvzDr62JOqGOqFEgY= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1555605200224805.5008480834217; Thu, 18 Apr 2019 09:33:20 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hH9xM-00024I-Sa; Thu, 18 Apr 2019 16:32:12 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hH9xK-00022D-W2 for xen-devel@lists.xenproject.org; Thu, 18 Apr 2019 16:32:11 +0000 Received: from SMTP03.CITRIX.COM (unknown [162.221.156.55]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id 8354c13e-61f7-11e9-92d7-bc764e045a96; Thu, 18 Apr 2019 16:32:10 +0000 (UTC) X-Inumbo-ID: 8354c13e-61f7-11e9-92d7-bc764e045a96 X-IronPort-AV: E=Sophos;i="5.60,366,1549929600"; d="scan'208";a="83913784" From: Ian Jackson To: Date: Thu, 18 Apr 2019 17:31:53 +0100 Message-ID: <20190418163158.11408-17-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190418163158.11408-1-ian.jackson@eu.citrix.com> References: <20190418163158.11408-1-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [OSSTEST PATCH 16/21] ts-host-allocate-Executive: Break out $now and add a newline X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Ian Jackson Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Prep work, no functional change. Signed-off-by: Ian Jackson --- ts-hosts-allocate-Executive | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ts-hosts-allocate-Executive b/ts-hosts-allocate-Executive index 3da138b1..3425c8ce 100755 --- a/ts-hosts-allocate-Executive +++ b/ts-hosts-allocate-Executive @@ -756,12 +756,14 @@ sub attempt_allocation { logm("host allocation: successful, reporting to planner."); } else { logm("host allocation: planned start in $best->{Start} seconds."); + my $maxwait =3D $r{hostalloc_maxwait_max}; + my $now =3D time // die $!; if (defined $maxwait) { # We quit if: # * we have been waiting at least $maxwait/2 # * we estimate it will take at least $maxwait overall - my $wait_sofar =3D (time // die $!) - $alloc_start_time; + my $wait_sofar =3D $now - $alloc_start_time; die "timed out: $wait_sofar, $best->{Start}, $maxwait" if $wait_sofar > $maxwait/2 && $wait_sofar + $best->{Start} > $maxwait; --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel