mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-02 10:59:15 +00:00
refactor(kernel): remove 'foreach' macro
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
@ -43,7 +43,7 @@ const char *TaskStateStrings[] = {
|
||||
void cmd_top(const char *)
|
||||
{
|
||||
printf("PID Name State Priority Memory Usage CPU Usage\n");
|
||||
foreach (auto Proc in TaskManager->GetProcessList())
|
||||
for (auto Proc : TaskManager->GetProcessList())
|
||||
{
|
||||
#if defined(__amd64__)
|
||||
printf("%-4d %-20s %s %d %ld KiB %ld\n",
|
||||
@ -57,7 +57,7 @@ void cmd_top(const char *)
|
||||
Proc->Info.UserTime + Proc->Info.KernelTime);
|
||||
#endif
|
||||
|
||||
foreach (auto Thrd in Proc->Threads)
|
||||
for (auto Thrd : Proc->Threads)
|
||||
{
|
||||
#if defined(__amd64__)
|
||||
printf(" %-4d %-20s %s %d %ld KiB %ld\n",
|
||||
|
Reference in New Issue
Block a user