summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Applications/SystemMonitor/ProcessMemoryMapWidget.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/Userland/Applications/SystemMonitor/ProcessMemoryMapWidget.cpp b/Userland/Applications/SystemMonitor/ProcessMemoryMapWidget.cpp
index d36a7f57ab..bb88ef0e65 100644
--- a/Userland/Applications/SystemMonitor/ProcessMemoryMapWidget.cpp
+++ b/Userland/Applications/SystemMonitor/ProcessMemoryMapWidget.cpp
@@ -93,7 +93,12 @@ ProcessMemoryMapWidget::ProcessMemoryMapWidget()
builder.append('T');
return builder.to_string();
});
- pid_vm_fields.empend("vmobject", "VMObject type", Gfx::TextAlignment::CenterLeft);
+ pid_vm_fields.empend("VMObject type", Gfx::TextAlignment::CenterLeft, [](auto& object) {
+ auto type = object.get("vmobject").to_string();
+ if (type.ends_with("VMObject"))
+ type = type.substring(0, type.length() - 8);
+ return type;
+ });
pid_vm_fields.empend("Purgeable", Gfx::TextAlignment::CenterLeft, [](auto& object) {
if (object.get("volatile").to_bool())
return "Volatile";