commit | 9b70f0970864606d2b4904679f84d7ea2d7aea66 | [log] [tgz] |
---|---|---|
author | Zhouping Liu <zliu@redhat.com> | Wed Feb 15 23:18:48 2012 +0800 |
committer | Caspar Zhang <caspar@casparzhang.com> | Thu Feb 16 10:21:53 2012 +0800 |
tree | 70de3a4d3fcf707fe41860bde949e268e65b2fb4 | |
parent | 2024d8c4a9811c52d0904888568b0c069fc8122f [diff] |
lib/mem.c: fix count_numa func If NUMA node number is not continuous, such as: [root@localhost ~]# numactl -H available: 4 nodes (1,3,5,7) ... the node numbers are 1 3 5 7 Or it is not begin with 0, such as: [root@localhost ~]# numactl -H available: 3 nodes (1-3) ... it's begin with 1 not 0 Under the above two cases, count_numa() will return a wrong number: 0 Signed-off-by: Zhouping Liu <zliu@redhat.com>