fix bug where freq is show as 0

This commit is contained in:
Amber
2020-08-26 18:33:25 +00:00
parent e366a0a05a
commit c5f8fc7931

View File

@@ -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());
} }