From 3b0165aa9e26694af68d6fded56869369e2b343a Mon Sep 17 00:00:00 2001 From: Jiri Vlasak Date: Mon, 7 Dec 2020 13:43:13 +0100 Subject: [PATCH] Fix error rate computation --- scripts/scenario.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/scenario.py b/scripts/scenario.py index 7d4d16e..3654626 100644 --- a/scripts/scenario.py +++ b/scripts/scenario.py @@ -133,7 +133,7 @@ def error_rate(): f = grep("cost", True) e = {} for k, v in f.items(): - dones = [1 for c in v if c < 9999 and c > -1] + dones = [1 for c in v if c < 9999 and c > 0] e[k] = 100 * (len(v) - len(dones)) / len(v) e2 = {} i = 1 -- 2.39.2