Skip to content

Commit

Permalink
Fix CSV output of HW thread topology
Browse files Browse the repository at this point in the history
  • Loading branch information
TomTheBear committed Nov 8, 2023
1 parent 0276c9b commit a0301c7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/applications/likwid-topology.lua
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,14 @@ for cntr=0,cputopo["numHWThreads"]-1 do
else
table.insert(line, "")
end
table.insert(output_csv, likwid.printTextTable(header, line, cntr == 0))
if print_csv then
if cntr == 0 then
table.insert(output_csv, table.concat(header, ","))
end
table.insert(output_csv, table.concat(line, ","))
else
table.insert(output_csv, likwid.printTextTable(header, line, cntr == 0))
end
end
table.insert(output_csv, likwid.hline)

Expand Down

0 comments on commit a0301c7

Please sign in to comment.