Applications: Use new global variables at /sys/kernel/ directory

This commit is contained in:
Liav A 2022-10-14 21:55:17 +03:00 committed by Andrew Kaster
commit 5dfb2b18f3
Notes: sideshowbarker 2024-07-17 05:06:26 +09:00
28 changed files with 33 additions and 32 deletions

View file

@ -31,7 +31,7 @@ ProcessModel::ProcessModel()
VERIFY(!s_the);
s_the = this;
auto file = Core::File::construct("/proc/cpuinfo");
auto file = Core::File::construct("/sys/kernel/cpuinfo");
if (file->open(Core::OpenMode::ReadOnly)) {
auto buffer = file->read_all();
auto json = JsonValue::from_string({ buffer });