From 705a63f1b232878b7994e9dcc3e6572e4787e454 Mon Sep 17 00:00:00 2001 From: Ties de Wit Date: Mon, 29 Aug 2022 15:44:23 +0200 Subject: [PATCH] Update disk_unix.go --- disk/disk_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disk/disk_unix.go b/disk/disk_unix.go index 6d2c3fd9..4cef8cba 100644 --- a/disk/disk_unix.go +++ b/disk/disk_unix.go @@ -26,7 +26,7 @@ func UsageWithContext(ctx context.Context, path string) (*UsageStat, error) { InodesTotal: (uint64(stat.Files)), InodesFree: (uint64(stat.Ffree)), } - + ret.Used = (uint64(stat.Blocks) - uint64(stat.Bfree)) * uint64(bsize) if (ret.Used + ret.Free) == 0 {