Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
refactor(proto): remove num_replicas from routes
  • Loading branch information
hanhxiao committed Sep 12, 2019
1 parent a91d465 commit ce43be80f34e990066ff73503ced51ebf50d78b0
Showing with 1 addition and 1 deletion.
  1. +1 −1 gnes/service/frontend.py
@@ -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)

0 comments on commit ce43be8

Please sign in to comment.