FIX sort for some cpu topologies

This commit is contained in:
Nathan Dwarshuis 2024-03-06 12:23:49 -05:00
parent 8e973c0479
commit ec1e22652f
1 changed files with 2 additions and 1 deletions

View File

@ -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