summaryrefslogtreecommitdiff
path: root/Applications/SystemMonitor
diff options
context:
space:
mode:
Diffstat (limited to 'Applications/SystemMonitor')
-rw-r--r--Applications/SystemMonitor/main.cpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/Applications/SystemMonitor/main.cpp b/Applications/SystemMonitor/main.cpp
index eb58978a90..c8b69a80bc 100644
--- a/Applications/SystemMonitor/main.cpp
+++ b/Applications/SystemMonitor/main.cpp
@@ -31,8 +31,9 @@
#include "ProcessFileDescriptorMapWidget.h"
#include "ProcessMemoryMapWidget.h"
#include "ProcessModel.h"
-#include "ThreadStackWidget.h"
#include "ProcessUnveiledPathsWidget.h"
+#include "ThreadStackWidget.h"
+#include <AK/NumberFormat.h>
#include <LibCore/Timer.h>
#include <LibGUI/AboutDialog.h>
#include <LibGUI/Action.h>
@@ -61,17 +62,6 @@
#include <stdio.h>
#include <unistd.h>
-static String human_readable_size(u32 size)
-{
- if (size < (64 * KiB))
- return String::format("%u", size);
- if (size < MiB)
- return String::format("%u KB", size / KiB);
- if (size < GiB)
- return String::format("%u MB", size / MiB);
- return String::format("%u GB", size / GiB);
-}
-
static NonnullRefPtr<GUI::Widget> build_file_systems_tab();
static NonnullRefPtr<GUI::Widget> build_pci_devices_tab();
static NonnullRefPtr<GUI::Widget> build_devices_tab();