mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
Preallocate the maximum number of FileHandle pointers (fds) in every process.
This could even use a more specific data structure since it doesn't need the grow/shrink capabilities of a vector.
This commit is contained in:
@@ -203,7 +203,7 @@ ByteBuffer procfs$summary()
|
||||
toString(process->state()),
|
||||
process->parentPID(),
|
||||
process->timesScheduled(),
|
||||
process->fileHandleCount(),
|
||||
process->number_of_open_file_descriptors(),
|
||||
process->tty() ? strrchr(process->tty()->ttyName().characters(), '/') + 1 : "n/a",
|
||||
process->name().characters());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user