Browse Source

Merge branch 'bugfix/fix-df' into 'master'

Bugfix/fix df

See merge request !11
Fredric Silberberg 5 years ago
parent
commit
9b68953651
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      filesystem.go

+ 1
- 1
filesystem.go View File

@@ -27,7 +27,7 @@ func NewFilesystem(args []string) (procPtr *Filesystem, err error) {
27 27
 		// TODO: add error checking
28 28
 		size, _ := strconv.Atoi(args[1])
29 29
 		used, _ := strconv.Atoi(args[2])
30
-		available, _ := strconv.Atoi(args[2])
30
+		available, _ := strconv.Atoi(args[3])
31 31
 		procPtr = &Filesystem{
32 32
 			args[0], size, used, available, args[4]}
33 33
 	}

Loading…
Cancel
Save