From: Shan Shaji <s.shaji@proxmox.com>
To: yew-devel@lists.proxmox.com
Subject: [yew-devel] [PATCH proxmox-yew-comp] fix: use IEC standared for showing the HD space
Date: Fri, 19 Dec 2025 18:20:31 +0100 [thread overview]
Message-ID: <20251219172031.288936-1-s.shaji@proxmox.com> (raw)
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@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
_______________________________________________
yew-devel mailing list
yew-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/yew-devel
reply other threads:[~2025-12-19 17:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251219172031.288936-1-s.shaji@proxmox.com \
--to=s.shaji@proxmox.com \
--cc=yew-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox