mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 22:30:31 +00:00
ps: Port to using CProcessStatisticsReader and /proc/all
Drop /proc/summary in the process. We only needed one new field here, thankfully, so this was quite straightforward.
This commit is contained in:
parent
a9d1a86e6e
commit
57da716be0
Notes:
sideshowbarker
2024-07-19 13:11:46 +09:00
Author: https://github.com/rburchell
Commit: 57da716be0
Pull-request: https://github.com/SerenityOS/serenity/pull/331
Reviewed-by: https://github.com/awesomekling ✅
4 changed files with 28 additions and 32 deletions
|
@ -28,6 +28,7 @@ HashMap<pid_t, CProcessStatistics> CProcessStatisticsReader::get_all()
|
|||
process.pid = process_object.get("pid").to_u32();
|
||||
process.times_scheduled = process_object.get("times_scheduled").to_u32();
|
||||
process.pgid = process_object.get("pgid").to_u32();
|
||||
process.pgp = process_object.get("pgp").to_u32();
|
||||
process.sid = process_object.get("sid").to_u32();
|
||||
process.uid = process_object.get("uid").to_u32();
|
||||
process.gid = process_object.get("gid").to_u32();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue