mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
fix: added a special rule for the docker process to show the name correctly (CPU process)
This commit is contained in:
@@ -229,6 +229,9 @@ public class ProcessReader: Reader<[TopProcess]> {
|
||||
if let app = NSRunningApplication(processIdentifier: pid_t(pid)), let n = app.localizedName {
|
||||
name = n
|
||||
}
|
||||
if command.contains("com.apple.Virtua") && name.contains("Docker") {
|
||||
name = "Docker"
|
||||
}
|
||||
|
||||
processes.append(TopProcess(pid: pid, name: name, usage: usage))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user