Advertisement
Guest User

Untitled

a guest
Feb 21st, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. ## VICTOR: put this in your for loop, at the end - just do me a favour and change a couple of the bits of the code (order, variables) so it looks like we have our own solutions (though I don't think he's that strict)
  2.  
  3.  
  4. if (response[i] > 10): # if most recent ping is greater than 10 ms,
  5.         delayTime = 2
  6.         print ('Delaying next ping for ' + str(delayTime) + ' seconds.')
  7.         time.sleep(delayTime) # delay for 2 seconds before initiating next ping
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement