summaryrefslogtreecommitdiff
path: root/Applications
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2020-07-17 21:45:02 -0400
committerAndreas Kling <kling@serenityos.org>2020-07-18 15:52:08 +0200
commitb5565b478f5634b42ca9b14b31f053a926ab5c5b (patch)
tree14848b873240e95a41f89cb6d3f46c14ae9374b2 /Applications
parenta98d960ad424f71a2494739989168b84364746c5 (diff)
downloadserenity-b5565b478f5634b42ca9b14b31f053a926ab5c5b.zip
System Monitor: Sort Address column in memory map numerically
Diffstat (limited to 'Applications')
-rw-r--r--Applications/SystemMonitor/ProcessMemoryMapWidget.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/Applications/SystemMonitor/ProcessMemoryMapWidget.cpp b/Applications/SystemMonitor/ProcessMemoryMapWidget.cpp
index 8ea21114d2..37043909ec 100644
--- a/Applications/SystemMonitor/ProcessMemoryMapWidget.cpp
+++ b/Applications/SystemMonitor/ProcessMemoryMapWidget.cpp
@@ -70,9 +70,10 @@ ProcessMemoryMapWidget::ProcessMemoryMapWidget()
layout()->set_margins({ 4, 4, 4, 4 });
m_table_view = add<GUI::TableView>();
Vector<GUI::JsonArrayModel::FieldSpec> pid_vm_fields;
- pid_vm_fields.empend("Address", Gfx::TextAlignment::CenterLeft, [](auto& object) {
- return String::format("%#x", object.get("address").to_u32());
- });
+ pid_vm_fields.empend(
+ "Address", Gfx::TextAlignment::CenterLeft,
+ [](auto& object) { return String::format("%#x", object.get("address").to_u32()); },
+ [](auto& object) { return object.get("address").to_u32(); });
pid_vm_fields.empend("size", "Size", Gfx::TextAlignment::CenterRight);
pid_vm_fields.empend("amount_resident", "Resident", Gfx::TextAlignment::CenterRight);
pid_vm_fields.empend("amount_dirty", "Dirty", Gfx::TextAlignment::CenterRight);