aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-02-22 12:08:32 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-02-22 12:08:32 +0100
commit11a75d564929e2d80a097e6c5484d004ea118904 (patch)
tree5bd7f223cf277b476f06d68aaedfac5a1ee23489
parent06f5010c86144353a777afe6d72730585a31c7dd (diff)
downloadallocbench-11a75d564929e2d80a097e6c5484d004ea118904.tar.gz
allocbench-11a75d564929e2d80a097e6c5484d004ea118904.zip
save a valid result if we haven't seen one yet
-rw-r--r--src/benchmark.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/benchmark.py b/src/benchmark.py
index 0b68b32..aac4f46 100644
--- a/src/benchmark.py
+++ b/src/benchmark.py
@@ -529,7 +529,7 @@ class Benchmark:
# save a valid result so we can expand invalid ones
- if valid_result is not None:
+ if valid_result is None:
valid_result = result
self.results[alloc_name][perm].append(result)