Merge pull request #80 from cakebaker/bump_sysinfo

Bump `sysinfo` and fix compile error in `lscpu`
This commit is contained in:
Sylvestre Ledru
2024-08-01 22:15:11 +02:00
committed by GitHub
3 changed files with 119 additions and 37 deletions

View File

@@ -16,7 +16,6 @@ const USAGE: &str = help_usage!("lscpu.md");
pub fn uumain(args: impl uucore::Args) -> UResult<()> {
let _matches: clap::ArgMatches = uu_app().try_get_matches_from(args)?;
let system = System::new_all();
let _cpu = system.global_cpu_info();
println!("Architecture: {}", get_architecture());
println!("CPU(s): {}", system.cpus().len());