Fixed I/O line in system view
Summary: Previously, we relied on partition name to filter out partition in system view which will also filter all nvme drives. This has been fixed by relying on disk minor number to filter out partition.
@@ -166,7 +166,7 @@ impl SysIo {
disks
.iter()
- .filter(|(disk_name, _)| !disk_name.chars().last().unwrap().is_digit(10))
+ .filter(|(_, sdm)| sdm.minor == Some(0))
.for_each(|(disk_name, sdm)| {
disk_stat.push_str(&format!(
"{:9.9}{:<10.10}{:7.7}",
