summaryrefslogtreecommitdiff
path: root/Userland/pidof.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-07-10 13:56:28 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-07-10 13:56:28 +0200
commit01216f3c3fb0cd763adbc441fa728ffd5a2c254f (patch)
tree4fce31bb571190e5ad82faa5676566d9c7f5fb63 /Userland/pidof.cpp
parent7083a0104ab73b57494236ac3b7eac78a67f103f (diff)
downloadserenity-01216f3c3fb0cd763adbc441fa728ffd5a2c254f.zip
Userland+LibCore: Use CProcessStatisticsReader to implement top.
Also tweaked CProcessStatisticsReader a bit to simplify the API.
Diffstat (limited to 'Userland/pidof.cpp')
-rw-r--r--Userland/pidof.cpp2
1 files changed, 1 insertions, 1 deletions
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<pid_t, CProcessStatistics> processes = CProcessStatisticsReader().get_map();
+ auto processes = CProcessStatisticsReader().get_all();
for (auto& it : processes) {
if (it.value.name == process_name) {