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 numpy as np
|
||||||
import urllib.request
|
import urllib.request
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
import time
|
||||||
recent=[]
|
recent=[]
|
||||||
history=[]
|
history=[]
|
||||||
width=720
|
width=720
|
||||||
|
@ -57,6 +58,7 @@ if __name__=="__main__":
|
||||||
while True:
|
while True:
|
||||||
if datetime.now().second==0 and datetime.now().minute!=lastminute:
|
if datetime.now().second==0 and datetime.now().minute!=lastminute:
|
||||||
# if True:
|
# if True:
|
||||||
|
time.sleep(0.5)
|
||||||
(code,delay)=testConnect("https://blog.clf3.org")
|
(code,delay)=testConnect("https://blog.clf3.org")
|
||||||
print(code,end=" ")
|
print(code,end=" ")
|
||||||
if code/100<=3:
|
if code/100<=3:
|
||||||
|
|
Loading…
Reference in New Issue