소스 검색

Added another du test

Toby Chui 1 년 전
부모
커밋
36edf9f6ec
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      mod/filesystem/static.go

+ 1 - 1
mod/filesystem/static.go

@@ -302,7 +302,7 @@ func GetDirectorySizeNative(filename string) (int64, error) {
 	}
 
 	chunks := strings.Split(tmp, " ")
-	if len(chunks) != 2 {
+	if len(chunks) <= 1 {
 		fmt.Println(chunks)
 		return 0, errors.New("malformed output")
 	}