Skip to content

Commit

Permalink
lib.pmu: Use floats to avoid truncation in ratios
Browse files Browse the repository at this point in the history
  • Loading branch information
lukego committed Aug 19, 2015
1 parent bb8ca5a commit fc59f26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/pmu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ function report (set, aux)
aux = aux or {}
local names = lib.array_copy(enabled)
local values = {}
for i = 0, pmu_x86.ncounters do table.insert(values, set[i]) end
for i = 0, #names-1 do table.insert(values, tonumber(set[i])) end
local auxnames, auxvalues = {}, {}
for k,v in pairs(aux) do
table.insert(auxnames,k)
Expand Down

0 comments on commit fc59f26

Please sign in to comment.