You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm using Linux Mint and sysinfo v0.30.3. disk.kind() is reporting my USB flash drive as a HDD. I'd think it would report as DiskKind::SSD or DiskKind::Unknown because flash drives are more similiar to SSDs than they are to HDDs. Is this a bug or intentional?
To Reproduce
use sysinfo::{Disks,DiskKind};fnmain(){let disks = Disks::new_with_refreshed_list();for disk in disks.list(){let kind = match disk.kind(){DiskKind::HDD => format!("{}", "HDD"),DiskKind::SSD => format!("{}", "SSD"),
_ => format!("{}", "Unknown")};let name = match disk.name().to_str(){Some(res) => format!("{}", res),None => format!("{}", ""),};let file_system = match disk.file_system().to_str(){Some(res) => format!("{}", res),None => format!("{}", ""),};let total_space = format!("{}", disk.total_space());let available_space = format!("{}", disk.available_space());let mount_point = match disk.mount_point().to_str(){Some(path_str) => format!("{}", path_str),None => format!("{}", "ERR")};println!("{} {} {} {} {} {}", kind, name, file_system, total_space, available_space, mount_point);}}
Describe the bug
I'm using Linux Mint and sysinfo v0.30.3. disk.kind() is reporting my USB flash drive as a HDD. I'd think it would report as DiskKind::SSD or DiskKind::Unknown because flash drives are more similiar to SSDs than they are to HDDs. Is this a bug or intentional?
To Reproduce
Output:
The text was updated successfully, but these errors were encountered: