diff options
author | Liav A <liavalb@gmail.com> | 2022-07-14 15:27:22 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-07-14 23:27:46 +0200 |
commit | e4e5fa74d0e45975a82784d65f5d1b26fd66e2f8 (patch) | |
tree | 7645081136152951e6d306d46b3b52bbde17ef7d /Userland/Applets/ResourceGraph | |
parent | 1c499e75bd25d66393aa2118144d7f0afccc2eed (diff) | |
download | serenity-e4e5fa74d0e45975a82784d65f5d1b26fd66e2f8.zip |
Kernel+Userland: Rename prefix of user_physical => physical
There's no such supervisor pages concept, so there's no need to call
physical pages with the "user_physical" prefix anymore.
Diffstat (limited to 'Userland/Applets/ResourceGraph')
-rw-r--r-- | Userland/Applets/ResourceGraph/main.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Userland/Applets/ResourceGraph/main.cpp b/Userland/Applets/ResourceGraph/main.cpp index c506c26fb0..261d9d8c55 100644 --- a/Userland/Applets/ResourceGraph/main.cpp +++ b/Userland/Applets/ResourceGraph/main.cpp @@ -193,13 +193,13 @@ private: auto const& obj = json.as_object(); unsigned kmalloc_allocated = obj.get("kmalloc_allocated"sv).to_u32(); unsigned kmalloc_available = obj.get("kmalloc_available"sv).to_u32(); - auto user_physical_allocated = obj.get("user_physical_allocated"sv).to_u64(); - auto user_physical_committed = obj.get("user_physical_committed"sv).to_u64(); - auto user_physical_uncommitted = obj.get("user_physical_uncommitted"sv).to_u64(); + auto physical_allocated = obj.get("physical_allocated"sv).to_u64(); + auto physical_committed = obj.get("physical_committed"sv).to_u64(); + auto physical_uncommitted = obj.get("physical_uncommitted"sv).to_u64(); unsigned kmalloc_bytes_total = kmalloc_allocated + kmalloc_available; unsigned kmalloc_pages_total = (kmalloc_bytes_total + PAGE_SIZE - 1) / PAGE_SIZE; - u64 total_userphysical_and_swappable_pages = kmalloc_pages_total + user_physical_allocated + user_physical_committed + user_physical_uncommitted; - allocated = kmalloc_allocated + ((user_physical_allocated + user_physical_committed) * PAGE_SIZE); + u64 total_userphysical_and_swappable_pages = kmalloc_pages_total + physical_allocated + physical_committed + physical_uncommitted; + allocated = kmalloc_allocated + ((physical_allocated + physical_committed) * PAGE_SIZE); available = (total_userphysical_and_swappable_pages * PAGE_SIZE) - allocated; return true; } |