From 526178bb8da007f66027ff713d0f2ba8a51fd08c Mon Sep 17 00:00:00 2001 From: kqzh <35095889+kqzh@users.noreply.github.com> Date: Wed, 23 Aug 2023 15:45:20 +0800 Subject: [PATCH] feat: ignore space 0 --- internal/clients/spaceusage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/clients/spaceusage.go b/internal/clients/spaceusage.go index ee508ab..0af8c04 100644 --- a/internal/clients/spaceusage.go +++ b/internal/clients/spaceusage.go @@ -26,7 +26,7 @@ func (s *SpaceUsage) GetSpaceUsages() (*pb.GetSpaceUsagesResponse, error) { } for _, dir := range dirs { id, err := strconv.Atoi(filepath.Base(dir)) - if err != nil { + if err != nil || id == 0 { continue }