From 01216f3c3fb0cd763adbc441fa728ffd5a2c254f Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 10 Jul 2019 13:56:28 +0200 Subject: Userland+LibCore: Use CProcessStatisticsReader to implement top. Also tweaked CProcessStatisticsReader a bit to simplify the API. --- Userland/pidof.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/pidof.cpp') diff --git a/Userland/pidof.cpp b/Userland/pidof.cpp index a115d9deb1..e1aa005e29 100644 --- a/Userland/pidof.cpp +++ b/Userland/pidof.cpp @@ -12,7 +12,7 @@ static int pid_of(const String& process_name, bool single_shot, bool omit_pid, p { bool displayed_at_least_one = false; - HashMap processes = CProcessStatisticsReader().get_map(); + auto processes = CProcessStatisticsReader().get_all(); for (auto& it : processes) { if (it.value.name == process_name) { -- cgit v1.2.3