Add partial filesystem data display for debugging
All checks were successful
Build and Release / build-and-release (push) Successful in 2m11s
All checks were successful
Build and Release / build-and-release (push) Successful in 2m11s
- Make filesystem display more forgiving - show partial data if available - Will display usage% even if GB values are missing, or vice versa - This should help identify which specific metrics aren't being populated - Debug version to identify filesystem data population issues
This commit is contained in:
@@ -562,6 +562,15 @@ impl SystemWidget {
|
||||
(Some(pct), Some(used), Some(total)) => {
|
||||
format!("{}: {:.0}% {:.1}GB/{:.1}GB", filesystem.mount_point, pct, used, total)
|
||||
}
|
||||
(Some(pct), _, Some(total)) => {
|
||||
format!("{}: {:.0}% —GB/{:.1}GB", filesystem.mount_point, pct, total)
|
||||
}
|
||||
(Some(pct), _, _) => {
|
||||
format!("{}: {:.0}% —GB/—GB", filesystem.mount_point, pct)
|
||||
}
|
||||
(_, Some(used), Some(total)) => {
|
||||
format!("{}: —% {:.1}GB/{:.1}GB", filesystem.mount_point, used, total)
|
||||
}
|
||||
_ => format!("{}: —% —GB/—GB", filesystem.mount_point),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user