Skip to content
Permalink
Browse files

fix: fix route table sum time

  • Loading branch information...
raccoonliukai committed Sep 25, 2019
1 parent 1ce6350 commit 8c6f2558c2da32a167c2ddccb6df953f0da87f30
Showing with 2 additions and 0 deletions.
  1. +2 −0 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

0 comments on commit 8c6f255

Please sign in to comment.
You can’t perform that action at this time.