Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
refactor(proto): remove num_replicas from routes
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhxiao committed Sep 12, 2019
1 parent a91d465 commit ce43be8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnes/service/frontend.py
Expand Up @@ -87,7 +87,7 @@ def remove_envelope(self, m: 'gnes_pb2.Message'):

sum_duration = 0
for k in m.envelope.routes[1:]:
if k.num_replicas and k.num_replicas >= 1:
if k.first_start_time and k.last_end_time:
d = self.get_duration(k.first_start_time, k.last_end_time)
else:
d = self.get_duration(k.start_time, k.end_time)
Expand Down

0 comments on commit ce43be8

Please sign in to comment.