aboutsummaryrefslogtreecommitdiff
path: root/bestflags/steering.py
diff options
context:
space:
mode:
authorYuheng Long <yuhenglong@google.com>2013-08-11 12:24:32 -0700
committerChromeBot <chrome-bot@google.com>2013-08-11 17:03:29 -0700
commitc01232264caccaffe6302414b7e901a96d3b18bf (patch)
tree5adcfa6bb7cb5d32925dce3be372419ef9adcd58 /bestflags/steering.py
parent2b514c28dd26aa02c2ea0f9924be91fb2394c8a0 (diff)
downloadtoolchain-utils-c01232264caccaffe6302414b7e901a96d3b18bf.tar.gz
Refine the module hill_climb_best_neighbor.
BUG=None TEST=unit testings for the pipeline stage, pipeline workers, generation, steering, task, flag and hill climbing. Change-Id: I95fd82072f1474b73735a643f2da589eb930b838 Reviewed-on: https://gerrit-int.chromium.org/42663 Reviewed-by: Luis Lozano <llozano@chromium.org> Tested-by: Yuheng Long <yuhenglong@google.com> Commit-Queue: Yuheng Long <yuhenglong@google.com>
Diffstat (limited to 'bestflags/steering.py')
-rw-r--r--bestflags/steering.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bestflags/steering.py b/bestflags/steering.py
index 5cdf8aed..a7a559e2 100644
--- a/bestflags/steering.py
+++ b/bestflags/steering.py
@@ -99,7 +99,7 @@ def Steering(cache, generations, input_queue, result_queue):
# A generation may not generate the next generation, e.g., because a
# fixpoint has been reached, there has not been any improvement for a few
# generations or a local maxima is reached.
- if not generation.Improved():
+ if not generation.IsImproved():
continue
for new_generation in generation.Next(cache):