From 8b8363eaa2633c8a7392521416f45549ff10c164 Mon Sep 17 00:00:00 2001 From: ivan-boikov Date: Sat, 13 Jan 2024 19:52:01 +0100 Subject: My initial changes --- components/ram.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'components/ram.c') diff --git a/components/ram.c b/components/ram.c index 15c4b74..503e7be 100644 --- a/components/ram.c +++ b/components/ram.c @@ -53,7 +53,8 @@ != 1) return NULL; - return fmt_human(total * 1024, 1024); + //return fmt_human(total * 1024, 1024); + return bprintf("%.1f", total/1048576.); } const char * @@ -71,7 +72,8 @@ return NULL; used = (total - free - buffers - cached); - return fmt_human(used * 1024, 1024); + //return fmt_human(used * 1024, 1024); + return bprintf("%4.1f", used/1048576.); } #elif defined(__OpenBSD__) #include -- cgit v1.2.3