mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-15 00:34:08 +09:00
fix: missing top processes in RAM module (#262)
This commit is contained in:
@@ -144,7 +144,7 @@ public class ProcessReader: Reader<[TopProcess]> {
|
||||
|
||||
var processes: [TopProcess] = []
|
||||
output.enumerateLines { (line, _) -> () in
|
||||
if line.matches("^\\d+ +.* +\\d+[A-Z]* *$") {
|
||||
if line.matches("^\\d+ +.* +\\d+[A-Z]*\\+?\\-? *$") {
|
||||
var str = line.trimmingCharacters(in: .whitespaces)
|
||||
let pidString = str.findAndCrop(pattern: "^\\d+")
|
||||
let usageString = str.suffix(5)
|
||||
|
||||
Reference in New Issue
Block a user