From 40535e2f41014b63b4f72be367e46455eca25e7b Mon Sep 17 00:00:00 2001 From: Serhiy Mytrovtsiy Date: Thu, 3 Nov 2022 19:38:12 +0100 Subject: [PATCH] fix: fixed RAM top processes reader regex (#1145) --- Modules/RAM/readers.swift | 2 +- Stats/Supporting Files/Info.plist | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/RAM/readers.swift b/Modules/RAM/readers.swift index 4bf33ba8..897497f2 100644 --- a/Modules/RAM/readers.swift +++ b/Modules/RAM/readers.swift @@ -145,7 +145,7 @@ public class ProcessReader: Reader<[TopProcess]> { var processes: [TopProcess] = [] output.enumerateLines { (line, _) -> Void in - if line.matches("^\\d+ +.* +\\d+[A-Z]*\\+?\\-? *$") { + if line.matches("^\\d+\\** +.* +\\d+[A-Z]*\\+?\\-? *$") { processes.append(ProcessReader.parseProcess(line)) } } diff --git a/Stats/Supporting Files/Info.plist b/Stats/Supporting Files/Info.plist index ce1ac3a8..5dd1c654 100755 --- a/Stats/Supporting Files/Info.plist +++ b/Stats/Supporting Files/Info.plist @@ -17,7 +17,7 @@ CFBundleShortVersionString $(MARKETING_VERSION) CFBundleVersion - 412 + 415 Description Simple macOS system monitor in your menu bar LSApplicationCategoryType