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!(" {:8} {:64}",
|
||||
"brand:".bright_blue(),
|
||||
sys.get_global_processor_info().get_brand());
|
||||
sys.get_processors()[0].get_brand());
|
||||
println!(" {:8} {:<4}",
|
||||
"cores:".bright_blue(),
|
||||
sys.get_processors().len());
|
||||
println!(" {:8} {:<8} mHz",
|
||||
"freq:".bright_blue(),
|
||||
sys.get_global_processor_info().get_frequency());
|
||||
sys.get_processors()[0].get_frequency());
|
||||
}
|
Reference in New Issue
Block a user