1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:27:35 +00:00

LibCore: Make usernames optional in ProcessStatisticsReader

This commit is contained in:
Peter Elliott 2022-10-02 18:17:24 -06:00 committed by Andreas Kling
parent 71728f3ea6
commit 76c67b7ae9
2 changed files with 8 additions and 6 deletions

View file

@ -72,8 +72,8 @@ struct AllProcessesStatistics {
class ProcessStatisticsReader {
public:
static Optional<AllProcessesStatistics> get_all(RefPtr<Core::File>&);
static Optional<AllProcessesStatistics> get_all();
static Optional<AllProcessesStatistics> get_all(RefPtr<Core::File>&, bool include_usernames = true);
static Optional<AllProcessesStatistics> get_all(bool include_usernames = true);
private:
static String username_from_uid(uid_t);