fix: missing top processes in RAM module (#262)

This commit is contained in:
Serhiy Mytrovtsiy
2021-01-01 18:44:16 +01:00
parent fb08e621ab
commit 9d71c396f1

View File

@@ -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)