diff options
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/ProcFileSystem.cpp | 5 | ||||
-rw-r--r-- | Kernel/init.cpp | 6 |
2 files changed, 4 insertions, 7 deletions
diff --git a/Kernel/ProcFileSystem.cpp b/Kernel/ProcFileSystem.cpp index bc4f64d0e9..7bde996892 100644 --- a/Kernel/ProcFileSystem.cpp +++ b/Kernel/ProcFileSystem.cpp @@ -24,13 +24,14 @@ bool ProcFileSystem::initialize() auto stringImpl = StringImpl::createUninitialized(tasks.size() * 128, buffer); memset(buffer, 0, stringImpl->length()); char* ptr = buffer; - ptr += ksprintf(ptr, "PID OWNER STATE NAME\n"); + ptr += ksprintf(ptr, "PID OWNER STATE NSCHED NAME\n"); for (auto* task : tasks) { - ptr += ksprintf(ptr, "%w %w:%w %b %s\n", + ptr += ksprintf(ptr, "%w %w:%w %b %w %s\n", task->pid(), task->uid(), task->gid(), task->state(), + task->timesScheduled(), task->name().characters()); } ptr += ksprintf(ptr, "kmalloc: alloc: %u / free: %u\n", sum_alloc, sum_free); diff --git a/Kernel/init.cpp b/Kernel/init.cpp index 46b5f2a749..86e3d53f08 100644 --- a/Kernel/init.cpp +++ b/Kernel/init.cpp @@ -101,7 +101,7 @@ static void undertaker_main() { for (;;) { Task::doHouseKeeping(); - sleep(10); + sleep(300); } } @@ -114,10 +114,6 @@ static void init_stage2() auto keyboard = make<Keyboard>(); - extern void panel_main(); - //new Task(panel_main, "panel", IPC::Handle::PanelTask, Task::Ring0); - //new Task(led_disco, "led-disco", IPC::Handle::Any, Task::Ring0); - Disk::initialize(); #ifdef TEST_VFS |