From 8c6f2558c2da32a167c2ddccb6df953f0da87f30 Mon Sep 17 00:00:00 2001 From: raccoonliukai <903896015@qq.com> Date: Wed, 25 Sep 2019 15:57:17 +0800 Subject: [PATCH] fix: fix route table sum time --- gnes/helper.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnes/helper.py b/gnes/helper.py index 239d6b03..82747041 100644 --- a/gnes/helper.py +++ b/gnes/helper.py @@ -612,6 +612,8 @@ def make_route_table(routes, include_frontend: bool = False, jitter: float = 1e- total_duration = get_duration(routes[0].start_time, routes[-1].end_time) + jitter sum_duration = 0 for k in routes: + if k.service == 'FrontEndService': + continue d = get_duration(k.start_time, k.end_time) route_time.append((k.service, d)) sum_duration += d