mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 00:15:08 +00:00
ProcessManager+WindowServer: Do a little less malloc() in CPU monitor code.
This commit is contained in:
parent
36a6c10b09
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