Explorar o código

Added another du test

Toby Chui hai 1 ano
pai
achega
36edf9f6ec
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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")
 	}