Skip to content

Commit

Permalink
get echo delay before it was used.
Browse files Browse the repository at this point in the history
  • Loading branch information
muzixing committed Aug 17, 2016
1 parent 7c82a51 commit df8e26d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ryu/app/network_awareness/network_delay_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def _state_change_handler(self, ev):

def _detector(self):
while CONF.weight == 'delay':
self._send_echo_request()
self.create_link_delay()
try:
self.awareness.shortest_paths = {}
Expand All @@ -69,7 +70,6 @@ def _detector(self):
self.awareness = lookup_service_brick('awareness')

self.show_delay_statis()
self._send_echo_request()
hub.sleep(setting.DELAY_DETECTING_PERIOD)

def _send_echo_request(self):
Expand Down

0 comments on commit df8e26d

Please sign in to comment.