From fd31012b2c35e3a3ebd14b5246b3a35f3d60d0f8 Mon Sep 17 00:00:00 2001 From: Miro Torrielli Date: Sat, 30 Mar 2024 11:34:03 +0100 Subject: [PATCH] ntok must be greater than or equal to 3, not 2 --- src/cmd/auxstats/Linux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/auxstats/Linux.c b/src/cmd/auxstats/Linux.c index a4f9aa7b..52f1a840 100644 --- a/src/cmd/auxstats/Linux.c +++ b/src/cmd/auxstats/Linux.c @@ -182,9 +182,9 @@ xstat(int first) readfile(fd); for(i=0; i= 2){ + if(strcmp(tok[0], "siblings") == 0 && ntok >= 3){ numcores = atoll(tok[2]); break; }