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
This commit is contained in:
@@ -203,6 +203,10 @@ public class ProcessReader: Reader<[TopProcess]> {
|
||||
name = n
|
||||
}
|
||||
|
||||
if command.contains("com.apple.Virtua") && name.contains("Docker") {
|
||||
name = "Docker"
|
||||
}
|
||||
|
||||
return TopProcess(pid: pid, name: name, usage: usage * Double(1000 * 1000))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user