Commit 619ea28c authored by 李贺's avatar 李贺

更新进程采集

parent 5e4ebbb2
......@@ -55,7 +55,7 @@ if __name__ == "__main__":
}
data.append(tmp_memory_percent)
for process in sorted(processList,key=lambda x:x[2],reverse=True)[:5]: #取CPU前5
if process[2]>0
if process[2]>0:
tmp_cpu_percent={
"endpoint":endpoint,
"tags":"pid="+process[1]+",cmd="+process[6],
......
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