diff options
Diffstat (limited to 'Userland/Utilities/nproc.cpp')
-rw-r--r-- | Userland/Utilities/nproc.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Utilities/nproc.cpp b/Userland/Utilities/nproc.cpp index 54f730fe7a..4d8eccc00b 100644 --- a/Userland/Utilities/nproc.cpp +++ b/Userland/Utilities/nproc.cpp @@ -5,6 +5,7 @@ */ #include <AK/JsonObject.h> +#include <LibCore/File.h> #include <LibCore/Stream.h> #include <LibCore/System.h> #include <LibMain/Main.h> @@ -12,7 +13,7 @@ ErrorOr<int> serenity_main(Main::Arguments) { TRY(Core::System::pledge("stdio rpath")); - auto file = TRY(Core::Stream::File::open("/sys/kernel/cpuinfo"sv, Core::Stream::OpenMode::Read)); + auto file = TRY(Core::File::open("/sys/kernel/cpuinfo"sv, Core::File::OpenMode::Read)); auto buffer = TRY(file->read_until_eof()); auto json = TRY(JsonValue::from_string(buffer)); |