change diagnostics formatting

This commit is contained in:
Carter Anderson 2020-03-28 13:42:16 -07:00
parent 78de2fe2a1
commit 38a808db84

View file

@ -66,10 +66,12 @@ pub fn print_diagnostics_system(wait: Duration) -> Box<dyn Schedulable> {
elasped = 0.0;
for diagnostic in diagnostics.iter() {
if let Some(value) = diagnostic.value() {
println!("{}: {:.6}", diagnostic.name, value);
print!("{:<10}: {:<9.6}", diagnostic.name, value);
if let Some(average) = diagnostic.average() {
println!(" average: {:.6}", average);
print!(" (avg {:.6})", average);
}
println!("\n");
}
}
}