FIX sort for some cpu topologies
This commit is contained in:
parent
8e973c0479
commit
ec1e22652f
|
@ -274,7 +274,8 @@ M.get_core_topology = function()
|
||||||
pure.partial(gmatch_to_tableN, '(%d+),(%d+)')
|
pure.partial(gmatch_to_tableN, '(%d+),(%d+)')
|
||||||
)
|
)
|
||||||
local out =
|
local out =
|
||||||
i_o.execute_cmd('lscpu -y -p=core,cpu | grep -v \'^#\' | sort -k1,1n')
|
i_o.execute_cmd('lscpu -y -p=core,cpu | grep -v \'^#\' | sort -k1,1n -t,')
|
||||||
|
print(out)
|
||||||
return pure.fmap_maybe(f, out)
|
return pure.fmap_maybe(f, out)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue