diff --git a/src/providers/systemstats.go b/src/providers/systemstats.go index cf63c75..3df700b 100644 --- a/src/providers/systemstats.go +++ b/src/providers/systemstats.go @@ -48,9 +48,9 @@ func GetDist() (string, string) { func getSizeRam(total, avaible, used *int) string { if *total >= 1024*1024 && *avaible >= 1024*1024 { *used = *total - *avaible - usedGiB := *used / (1024 * 1024) - totalGiB := *total / (1024 * 1024) - ram := fmt.Sprintf("%d / %d Gi", usedGiB, totalGiB) + usedGiB := float64(*used) / (1024 * 1024) + totalGiB := float64(*total) / (1024 * 1024) + ram := fmt.Sprintf("%.2f / %.2f GiB", usedGiB, totalGiB) ram = strings.TrimSpace(ram) return ram