From: Sebastien GODARD Date: Sat, 26 Sep 2020 07:01:48 +0000 (+0200) Subject: systest: Small fix for array index values X-Git-Tag: v12.5.1~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3a3e58c311288ac1d066bfe74b1f87eb277e1e53;p=sysstat systest: Small fix for array index values Array index was varying only from 0 to 1 (instead of 0 to 3). Signed-off-by: Sebastien GODARD --- diff --git a/systest.c b/systest.c index a83b303..9be44c1 100644 --- 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; }