Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GyulyVGC committed Mar 4, 2024
1 parent aaf1013 commit cb434ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use std::str::FromStr;
const ROOT: &str = "/proc";

static KERNEL: Lazy<Option<String>> = 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())})
Expand Down

0 comments on commit cb434ae

Please sign in to comment.