Commit 93cc3323 authored by jose's avatar jose

Fix apache to get load information error

parent 5df2f7bb
...@@ -55,7 +55,7 @@ class apache: ...@@ -55,7 +55,7 @@ class apache:
#格式化重启时间 #格式化重启时间
restarttime = re.search("RestartTime:\s+(.*)",result).group(1) restarttime = re.search("RestartTime:\s+(.*)",result).group(1)
rep = "\w+,\s([\w-]+)\s([\d\:]+)\sCST" rep = "\w+,\s([\w-]+)\s([\d\:]+)\s\w+"
date = re.search(rep,restarttime).group(1) date = re.search(rep,restarttime).group(1)
timedetail = re.search(rep,restarttime).group(2) timedetail = re.search(rep,restarttime).group(2)
monthen = ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"] monthen = ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]
......
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