From: Ian Jackson Subject: [OSSTEST PATCH 4/9] ts-hosts-allocate-Executive: Move $variation_age setting Date: Tue, 11 Nov 2014 19:41:45 +0000 Message-ID: <1415734910-4647-5-git-send-email-ian.jackson@eu.citrix.com> References: <1415734910-4647-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XoHKE-0005iw-PU for xen-devel@lists.xenproject.org; Tue, 11 Nov 2014 19:42:05 +0000 In-Reply-To: <1415734910-4647-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org We are going to want to put more stuff in here which depends on $duration_rightaway_adjust. No functional change in this commit. Signed-off-by: Ian Jackson --- ts-hosts-allocate-Executive | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ts-hosts-allocate-Executive b/ts-hosts-allocate-Executive index 73c1a45..67b8891 100755 --- a/ts-hosts-allocate-Executive +++ b/ts-hosts-allocate-Executive @@ -478,12 +478,6 @@ sub hid_recurse ($$) { print DEBUG "$dbg EVAL DURATION $duration va=$variation_age\n"; - if ($jobinfo->{recipe} =~ m/build/) { - $variation_age= 0; - } elsif ($variation_age > 5*86400) { - $variation_age= 5*86400; - } - my @requestlist; foreach my $hid (@hids) { my $req= { @@ -502,6 +496,12 @@ sub hid_recurse ($$) { $duration_rightaway_adjust=0 if $start_time; + if ($jobinfo->{recipe} =~ m/build/) { + $variation_age= 0; + } elsif ($variation_age > 5*86400) { + $variation_age= 5*86400; + } + my $cost= $start_time + $duration + $duration_rightaway_adjust -- 1.7.10.4