fix(runtime): cpu topology corrections

This commit is contained in:
Alex Zenla
2024-06-29 00:47:08 -07:00
parent 15e57f9055
commit 399df91170
5 changed files with 31 additions and 26 deletions

View File

@ -29,8 +29,7 @@ impl CpuTopologyCommand {
.await?
.into_inner();
let mut i = 0;
for cpu in response.cpus {
for (i, cpu) in response.cpus.iter().enumerate() {
println!(
"{0:<10} {1:<10} {2:<10} {3:<10} {4:<10} {5:<10}",
i,
@ -40,7 +39,6 @@ impl CpuTopologyCommand {
cpu.thread,
class_to_str(cpu.class)
);
i += 1;
}
Ok(())