mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-20 01:01:54 +00:00
ProcessManager+WindowServer: Do a little less malloc() in CPU monitor code.
This commit is contained in:
parent
36a6c10b09
commit
e74b5bc054
Notes:
sideshowbarker
2024-07-19 14:40:17 +09:00
Author: https://github.com/awesomekling
Commit: e74b5bc054
2 changed files with 5 additions and 3 deletions
|
@ -148,7 +148,8 @@ void ProcessModel::update()
|
|||
auto line = file.read_line(1024);
|
||||
if (line.is_empty())
|
||||
break;
|
||||
auto parts = String((const char*)line.pointer(), line.size() - 1, Chomp).split(',');
|
||||
auto chomped = String((const char*)line.pointer(), line.size() - 1, Chomp);
|
||||
auto parts = chomped.split_view(',');
|
||||
if (parts.size() < 18)
|
||||
break;
|
||||
bool ok;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue