Fix apache to get load information error

This commit is contained in:
jose
2019-07-06 15:51:44 +08:00
parent 5df2f7bb9b
commit 93cc332328
+1 -1
View File
@@ -55,7 +55,7 @@ class apache:
#格式化重启时间
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)
timedetail = re.search(rep,restarttime).group(2)
monthen = ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]