]> granicus.if.org Git - sysstat/commitdiff
systest: Small fix for array index values
authorSebastien GODARD <sysstat@users.noreply.github.com>
Sat, 26 Sep 2020 07:01:48 +0000 (09:01 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Sat, 26 Sep 2020 07:01:48 +0000 (09:01 +0200)
Array index was varying only from 0 to 1 (instead of 0 to 3).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
systest.c

index a83b30387db186f54cac311fa5a550378302ed4e..9be44c10135727c7ac1345b822ed3f172236b95d 100644 (file)
--- a/systest.c
+++ b/systest.c
@@ -112,7 +112,7 @@ int get_fs_stat(char *c, struct statvfs *buf)
        buf->f_files = files[p];
        buf->f_ffree = ffree[p];
 
-       p = (p + 1) & 0x11;
+       p = (p + 1) & 0x3;
 
        return 0;
 }