This commit is contained in:
david 2024-03-01 23:53:54 +08:00
parent 1a5d90c706
commit b7102b43b7
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ func getProcessInfo(processName string) (string, string) {
pid := fields[0] // PID进程标识
cpuUsage := fields[1] // CPU使用情况
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
}
}