On 11/23/2012 03:40 PM, Wanlong Gao wrote: > Fix the method of getting the number of numa nodes. > > Signed-off-by: Wanlong Gao <[email protected]>
FYI, Applied. Wanlong Gao > --- > testcases/kernel/numa/numa01.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/testcases/kernel/numa/numa01.sh b/testcases/kernel/numa/numa01.sh > index 9790ef4..9b491fc 100644 > --- a/testcases/kernel/numa/numa01.sh > +++ b/testcases/kernel/numa/numa01.sh > @@ -807,7 +807,7 @@ test010() > fi > > col=2 #column represents node0 in numastat > o/p > - numnodes=$(ls /sys/devices/system/node | wc -l) > + numnodes=$(ls /sys/devices/system/node | grep -Ec "node?") > Preferred_node=$[$[$numnodes/2]-1] > col=$[$Preferred_node+2] > numastat > $LTPTMP/numalog > ------------------------------------------------------------------------------ Keep yourself connected to Go Parallel: INSIGHTS What's next for parallel hardware, programming and related areas? Interviews and blogs by thought leaders keep you ahead of the curve. http://goparallel.sourceforge.net _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
