summaryrefslogtreecommitdiff
path: root/Userland/Utilities/lscpu.cpp
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2022-10-14 21:56:19 +0300
committerAndrew Kaster <andrewdkaster@gmail.com>2022-10-25 15:33:34 -0600
commit9d1ba0e6adcadc27d3a70237686fb573b27e10a3 (patch)
tree4f190d299fce0e0b00f4b4ce1dead72566bb023d /Userland/Utilities/lscpu.cpp
parent35c98a031a17a81ab11060b1856ecd385ce7f7bc (diff)
downloadserenity-9d1ba0e6adcadc27d3a70237686fb573b27e10a3.zip
Utilities: Use new global variables at /sys/kernel/ directory
Diffstat (limited to 'Userland/Utilities/lscpu.cpp')
-rw-r--r--Userland/Utilities/lscpu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Utilities/lscpu.cpp b/Userland/Utilities/lscpu.cpp
index fc78e579b1..afcbd26d9b 100644
--- a/Userland/Utilities/lscpu.cpp
+++ b/Userland/Utilities/lscpu.cpp
@@ -56,10 +56,10 @@ ErrorOr<int> serenity_main(Main::Arguments)
{
TRY(Core::System::pledge("stdio rpath"));
- TRY(Core::System::unveil("/proc/cpuinfo", "r"));
+ TRY(Core::System::unveil("/sys/kernel/cpuinfo", "r"));
TRY(Core::System::unveil(nullptr, nullptr));
- auto file = TRY(Core::File::open("/proc/cpuinfo", Core::OpenMode::ReadOnly));
+ auto file = TRY(Core::File::open("/sys/kernel/cpuinfo", Core::OpenMode::ReadOnly));
auto json = TRY(JsonValue::from_string(file->read_all()));
auto& array = json.as_array();