]> xenbits.xensource.com Git - osstest.git/commitdiff
ts-hosts-allocate-Executive: Fix broken call to $duration_estimator
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 19 Aug 2020 12:05:22 +0000 (13:05 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Wed, 19 Aug 2020 15:02:39 +0000 (16:02 +0100)
The debug subref is passed to the constructor (and indeed we do that).
The final argument to the actual estimator is $uptoincl_testid (but we
didn't say $will_uptoincl_testid, so it is ignored).

The code was wrong, but with no effect.  So no functional change.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
ts-hosts-allocate-Executive

index 3bc38102f3f784c42a7578df22da2526edd601c7..e5a6fbfe988c8d65a609e58faeaa51a6d55abb5f 100755 (executable)
@@ -516,10 +516,7 @@ sub find_recent_duration ($$) {
     ($candrow->{Duration},
      $candrow->{MostRecentStarted},
      $candrow->{MostRecentStatus}) =
-        $duration_estimator->($job, $hid->{Ident}, $candrow->{resname},
-                              sub {
-#                                  print DEBUG "$dbg DUR-EST @_\n";
-                              });
+        $duration_estimator->($job, $hid->{Ident}, $candrow->{resname});
 }