summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-07 11:12:23 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-07 11:14:58 +0100
commit5582a0a254c691db0c2ea8cf79bdbb0a2d74f00a (patch)
treee3bd27a9136daee6132249b785d4327746513ad6 /Userland
parent4df92709c801e6cbdbaea71d55550171e65a95b3 (diff)
downloadserenity-5582a0a254c691db0c2ea8cf79bdbb0a2d74f00a.zip
Kernel: When a lock is busy, donate remaining process ticks to lock holder.
Since we know who's holding the lock, and we're gonna have to yield anyway, we can just ask the scheduler to donate any remaining ticks to that process.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/top.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/top.cpp b/Userland/top.cpp
index 2e0d20bfa7..cc5c79e9c4 100644
--- a/Userland/top.cpp
+++ b/Userland/top.cpp
@@ -43,7 +43,7 @@ static Snapshot get_snapshot()
if (!ptr)
break;
auto parts = String(buf, Chomp).split(',');
- if (parts.size() < 16)
+ if (parts.size() < 17)
break;
bool ok;
pid_t pid = parts[0].to_uint(ok);