From 48640cc644296e2bc92f21722de718b51aee2639 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E5=8D=AB=E4=B8=9C?= Date: Thu, 5 Nov 2020 11:37:02 +0800 Subject: [PATCH] :bug: fix(2.0): fix avgKNSize is zero issue of redisgraph MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix avgKNSize is zero issue of redisgraph benchmark Signed-off-by: 郭卫东 --- benchmark/redisgraph/query_runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmark/redisgraph/query_runner.py b/benchmark/redisgraph/query_runner.py index 2ecc678..8a7e6b0 100644 --- a/benchmark/redisgraph/query_runner.py +++ b/benchmark/redisgraph/query_runner.py @@ -51,7 +51,7 @@ def KN(self, root, depth): raise e return -1 else: - return float(result[0][1][0]) if len(result[0]) == 2 else 0 + return float(result[1][0][0]) # TigerGraph query runner (compatible with v2.1.8)