From cb434aea68ddc75ccd354f93fcd947143f6f9d70 Mon Sep 17 00:00:00 2001 From: Giuliano Bellini s294739 Date: Mon, 4 Mar 2024 17:01:47 +0100 Subject: [PATCH] fix --- src/platform/linux.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/linux.rs b/src/platform/linux.rs index 854c43a..7c31c09 100644 --- a/src/platform/linux.rs +++ b/src/platform/linux.rs @@ -11,7 +11,7 @@ use std::str::FromStr; const ROOT: &str = "/proc"; static KERNEL: Lazy> = Lazy::new(|| { - std::fs::read_to_string("/proc/sys/kernel/osreleas") + std::fs::read_to_string("/proc/sys/kernel/osrelease") .and_then(|s| { println!("KERNEL: {}",s); Ok(s.trim().to_owned())})