dev
This commit is contained in:
parent
1a5d90c706
commit
b7102b43b7
|
@ -146,7 +146,7 @@ func getProcessInfo(processName string) (string, string) {
|
||||||
pid := fields[0] // PID(进程标识)
|
pid := fields[0] // PID(进程标识)
|
||||||
cpuUsage := fields[1] // CPU使用情况
|
cpuUsage := fields[1] // CPU使用情况
|
||||||
memoryUsage := fields[2] // 内存使用情况
|
memoryUsage := fields[2] // 内存使用情况
|
||||||
info = fmt.Sprintf("CPU:%s%% / MEM:%s%%", pid, cpuUsage, memoryUsage)
|
info = fmt.Sprintf("CPU:%s%% / MEM:%s%%", cpuUsage, memoryUsage)
|
||||||
return pid, info
|
return pid, info
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue