]> xenbits.xensource.com Git - people/dariof/osstest.git/commitdiff
ts-hosts-allocate-Executive: Move $variation_age setting
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 11 Nov 2014 18:28:07 +0000 (18:28 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 17 Nov 2014 17:32:10 +0000 (17:32 +0000)
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 <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
ts-hosts-allocate-Executive

index 73c1a45e4687f801eebe6ee14bd03a3f1a490a5c..67b8891c2a0dcf162966f2c6c717533484c08dea 100755 (executable)
@@ -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