fix bug where freq is show as 0
This commit is contained in:
4
main.rs
4
main.rs
@@ -36,11 +36,11 @@ fn main() {
|
|||||||
println!("{}", " processor:".bright_blue());
|
println!("{}", " processor:".bright_blue());
|
||||||
println!(" {:8} {:64}",
|
println!(" {:8} {:64}",
|
||||||
"brand:".bright_blue(),
|
"brand:".bright_blue(),
|
||||||
sys.get_global_processor_info().get_brand());
|
sys.get_processors()[0].get_brand());
|
||||||
println!(" {:8} {:<4}",
|
println!(" {:8} {:<4}",
|
||||||
"cores:".bright_blue(),
|
"cores:".bright_blue(),
|
||||||
sys.get_processors().len());
|
sys.get_processors().len());
|
||||||
println!(" {:8} {:<8} mHz",
|
println!(" {:8} {:<8} mHz",
|
||||||
"freq:".bright_blue(),
|
"freq:".bright_blue(),
|
||||||
sys.get_global_processor_info().get_frequency());
|
sys.get_processors()[0].get_frequency());
|
||||||
}
|
}
|
Reference in New Issue
Block a user