mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibCore: Report error condition when reading process statistics failed
This commit is contained in:
parent
754bf22da7
commit
cf89180c35
Notes:
sideshowbarker
2024-07-19 00:08:32 +09:00
Author: https://github.com/tomuta
Commit: cf89180c35
Pull-request: https://github.com/SerenityOS/serenity/pull/4736
12 changed files with 94 additions and 74 deletions
|
@ -86,7 +86,7 @@ struct ProcessStatistics {
|
|||
|
||||
class ProcessStatisticsReader {
|
||||
public:
|
||||
static HashMap<pid_t, Core::ProcessStatistics> get_all();
|
||||
static Optional<HashMap<pid_t, Core::ProcessStatistics>> get_all();
|
||||
|
||||
private:
|
||||
static String username_from_uid(uid_t);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue