[yew-devel] [PATCH proxmox-yew-comp] fix: use IEC standared for showing the HD space
Shan Shaji
s.shaji at proxmox.com
Fri Dec 19 18:20:31 CET 2025
The HD space was being showing in SI unit, However all other metrics
shown in the remote overview section were in IEC unit. Fixed it by
updating it to use the IEC unit.
Signed-off-by: Shan Shaji <s.shaji at proxmox.com>
---
src/node_info.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/node_info.rs b/src/node_info.rs
index 0f8fcb5..ca656d0 100644
--- a/src/node_info.rs
+++ b/src/node_info.rs
@@ -204,8 +204,8 @@ pub fn node_info(data: Option<NodeStatus>) -> Container {
.status(format!(
"{:.2}% ({} of {})",
fraction * 100.0,
- HumanByte::new_decimal(root_used as f64),
- HumanByte::new_decimal(root_total as f64),
+ HumanByte::from(root_used),
+ HumanByte::from(root_total),
))
})
.with_child({
--
2.47.3
More information about the yew-devel
mailing list