added sleep
This commit is contained in:
parent
7b1fd6679a
commit
486f27bf0e
2
main.py
2
main.py
|
@ -2,6 +2,7 @@ import cv2
|
|||
import numpy as np
|
||||
import urllib.request
|
||||
from datetime import datetime
|
||||
import time
|
||||
recent=[]
|
||||
history=[]
|
||||
width=720
|
||||
|
@ -57,6 +58,7 @@ if __name__=="__main__":
|
|||
while True:
|
||||
if datetime.now().second==0 and datetime.now().minute!=lastminute:
|
||||
# if True:
|
||||
time.sleep(0.5)
|
||||
(code,delay)=testConnect("https://blog.clf3.org")
|
||||
print(code,end=" ")
|
||||
if code/100<=3:
|
||||
|
|
Loading…
Reference in New Issue