From cbc9e4a0b4f6ef9f2f6c222c60ef3d101030e296 Mon Sep 17 00:00:00 2001 From: Dottere Date: Mon, 5 Oct 2026 14:56:09 +0200 Subject: [PATCH] fixed formatting in main (only for test case but good learning opportunity) --- cmd/rpi5-health/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/rpi5-health/main.go b/cmd/rpi5-health/main.go index 9e4ca29..09860e0 100644 --- a/cmd/rpi5-health/main.go +++ b/cmd/rpi5-health/main.go @@ -15,9 +15,9 @@ func main() { const GB = 1024 * 1024 * 1024 - log.Printf("Total memory: %dGB\n", memInfo.SystemMemory/GB) - log.Printf("Available memory: %dGB\n", memInfo.AvailableMemory/GB) - log.Printf("Used memory: %dGB\n", memInfo.GetUsedMemory()/GB) + log.Printf("Total memory: %.2fGB\n", float64(memInfo.SystemMemory)/GB) + log.Printf("Available memory: %.2fGB\n", float64(memInfo.AvailableMemory)/GB) + log.Printf("Used memory: %.2fGB\n", float64(memInfo.GetUsedMemory())/GB) cli.Listen() }