all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [yew-devel] [PATCH proxmox-yew-comp v2] fix: use IEC standared for showing the HD space
@ 2025-12-23 10:32 Shan Shaji
  2026-01-16  9:01 ` [yew-devel] applied: " Dietmar Maurer
  0 siblings, 1 reply; 2+ messages in thread
From: Shan Shaji @ 2025-12-23 10:32 UTC (permalink / raw)
  To: yew-devel

The HD space was being shown 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@proxmox.com>
---
 changes since v1:
 - fixed a typo inside the commit description. 

 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



_______________________________________________
yew-devel mailing list
yew-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/yew-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [yew-devel] applied: [PATCH proxmox-yew-comp v2] fix: use IEC standared for showing the HD space
  2025-12-23 10:32 [yew-devel] [PATCH proxmox-yew-comp v2] fix: use IEC standared for showing the HD space Shan Shaji
@ 2026-01-16  9:01 ` Dietmar Maurer
  0 siblings, 0 replies; 2+ messages in thread
From: Dietmar Maurer @ 2026-01-16  9:01 UTC (permalink / raw)
  To: Yew framework devel list at Proxmox


[-- Attachment #1.1: Type: text/plain, Size: 9 bytes --]

applied

[-- Attachment #1.2: Type: text/html, Size: 212 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
yew-devel mailing list
yew-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/yew-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-01-16  9:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-23 10:32 [yew-devel] [PATCH proxmox-yew-comp v2] fix: use IEC standared for showing the HD space Shan Shaji
2026-01-16  9:01 ` [yew-devel] applied: " Dietmar Maurer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal