mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-08 09:35:15 +00:00
SystemMonitor: Replace uses of JsonObject::get_deprecated()/get_ptr()
This commit is contained in:
@@ -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));
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user