Skip to content

Commit

Permalink
Merge pull request #45 from kqzh/fix_space_0
Browse files Browse the repository at this point in the history
feat: ignore space 0
  • Loading branch information
kqzh authored Aug 23, 2023
2 parents 698d36d + 526178b commit bf0578e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/clients/spaceusage.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit bf0578e

Please sign in to comment.