fix(processes): 对齐活动监视器内存口径与显示单位
This commit is contained in:
@@ -147,7 +147,7 @@ import SwiftUI
|
||||
case "name": text = process.name
|
||||
case "path": text = process.path ?? "--"
|
||||
case "cpu": text = process.cpu.map { String(format: "%.1f", $0 * 100) } ?? "--"
|
||||
case "memory": text = process.residentBytes.map { String(format: "%.1f MB", Double($0) / 1_000_000) } ?? "--"
|
||||
case "memory": text = process.footprintBytes.map { String(format: "%.1f MB", Double($0) / 1_048_576) } ?? "--"
|
||||
default: text = process.threads.map(String.init) ?? "--"
|
||||
}
|
||||
if cell.textField?.stringValue != text { cell.textField?.stringValue = text }
|
||||
|
||||
Reference in New Issue
Block a user