mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:18:11 +00:00
Applications: Use new global variables at /sys/kernel/ directory
This commit is contained in:
parent
6e508573a0
commit
5dfb2b18f3
28 changed files with 33 additions and 32 deletions
|
@ -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 });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue