mirror of
https://github.com/RGBCube/serenity
synced 2025-05-18 21:45:08 +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
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