|
@@ -14,7 +14,8 @@ func GetDirectoryDiskUsed(directories []string) (uint64, error) {
|
|
|
return 0, err
|
|
|
}
|
|
|
lines := strings.Split(string(output), "\n")
|
|
|
- fields := strings.Fields(lines[1])
|
|
|
+ fmt.Println(lines)
|
|
|
+ fields := strings.Fields(lines[0])
|
|
|
parseUint, err := strconv.ParseUint(fields[0], 10, 64)
|
|
|
fmt.Println("parseUint", parseUint)
|
|
|
if err != nil {
|