pull/109/head
midoks 3 years ago
parent d782d79f46
commit bb470e2876
  1. 4
      plugins/openresty/index.py
  2. 2
      plugins/php/index.py

@ -265,9 +265,7 @@ def initdUinstall():
def runInfo(): def runInfo():
# 取Openresty负载状态 # 取Openresty负载状态
try: try:
url = 'http://' + mw.getHostAddr() + '/nginx_status' url = 'http://' + mw.getHostAddr() + '/nginx_status'
result = mw.httpGet(url) result = mw.httpGet(url)
@ -294,7 +292,7 @@ def runInfo():
data['Writing'] = tmp[13] data['Writing'] = tmp[13]
data['Waiting'] = tmp[15] data['Waiting'] = tmp[15]
return mw.getJson(data) return mw.getJson(data)
else: except Exception as e:
return 'oprenresty not started' return 'oprenresty not started'

@ -549,7 +549,7 @@ def getFpmStatus(version):
data = json.loads(result) data = json.loads(result)
fTime = time.localtime(int(data['start time'])) fTime = time.localtime(int(data['start time']))
data['start time'] = time.strftime('%Y-%m-%d %H:%M:%S', fTime) data['start time'] = time.strftime('%Y-%m-%d %H:%M:%S', fTime)
else: except Exception as e:
data = {} data = {}
return mw.getJson(data) return mw.getJson(data)

Loading…
Cancel
Save