mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:48:12 +00:00
SystemMonitor: Replace uses of JsonObject::get_deprecated()/get_ptr()
This commit is contained in:
parent
2df57d5ae0
commit
6fdfa9f313
5 changed files with 31 additions and 31 deletions
|
@ -39,7 +39,7 @@ ProcessModel::ProcessModel()
|
|||
auto cpuinfo_array = json.value().as_array();
|
||||
cpuinfo_array.for_each([&](auto& value) {
|
||||
auto& cpu_object = value.as_object();
|
||||
auto cpu_id = cpu_object.get_deprecated("processor"sv).as_u32();
|
||||
auto cpu_id = cpu_object.get_u32("processor"sv).value();
|
||||
m_cpus.append(make<CpuInfo>(cpu_id));
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue