Commit f6112e2b by zhaihuitao

update

parent 19dfa8ff
...@@ -6,6 +6,7 @@ import time ...@@ -6,6 +6,7 @@ import time
import os, sys import os, sys
import socket, struct import socket, struct
import datetime import datetime
curPath = os.path.abspath(os.path.dirname(__file__)) curPath = os.path.abspath(os.path.dirname(__file__))
rootPath = os.path.split(curPath)[0] rootPath = os.path.split(curPath)[0]
sys.path.append(rootPath) sys.path.append(rootPath)
...@@ -37,7 +38,7 @@ count = r[0] ...@@ -37,7 +38,7 @@ count = r[0]
p = requests.get(url=URL, params=param, timeout=30, verify=False) p = requests.get(url=URL, params=param, timeout=30, verify=False)
time.sleep(250) time.sleep(300)
mysqlCon = MysqlCon(host=host, username=username, password=password, db=db) mysqlCon = MysqlCon(host=host, username=username, password=password, db=db)
r = mysqlCon.get_one(sql=sql) r = mysqlCon.get_one(sql=sql)
...@@ -47,4 +48,4 @@ if count + 1 == num: ...@@ -47,4 +48,4 @@ if count + 1 == num:
print("指标确认正常") print("指标确认正常")
else: else:
# print("指标异常,请关注") # print("指标异常,请关注")
1/0 1 / 0
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment