|
@@ -296,7 +296,7 @@ class deviceStatus(TemplateView):
|
|
|
for val in push_rows:
|
|
|
startAt = self.str_to_timestamp(val['startAt'])
|
|
|
run_time = int(time.time()) - int(startAt)
|
|
|
- if run_time > 1*60:
|
|
|
+ if run_time > 10*60:
|
|
|
push_paths.append(val['path'])
|
|
|
send_flag = False
|
|
|
#正在推流但是没有拉流的推流通知设备断掉
|
|
@@ -350,7 +350,7 @@ class deviceStatus(TemplateView):
|
|
|
# print('command=>{command}'.format(command=command))
|
|
|
command_url = "http://47.115.134.251/index.php?command={command}".format(command=command)
|
|
|
try:
|
|
|
- exec_res = requests.get(url=command_url, timeout=5)
|
|
|
+ exec_res = requests.get(url=command_url, timeout=1)
|
|
|
res = exec_res.json()
|
|
|
if res['code'] == 200:
|
|
|
return True
|