Skip to content

Commit

Permalink
Fix aggregated counter retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
dpino committed Jun 1, 2018
1 parent 5e7793a commit 5e1fced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/ptree/ptree.lua
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ end
-- accumulative sum. Accumulative sum is initialized to aggregated counter
-- value if any.
local function compute_aggregated_value (k)
local ret = counters.archived[k] or 0
local ret = counters.archived[k][0] or 0
for _,c in pairs(counters.active[k]) do
ret = ret + counter.read(c)
end
Expand Down

0 comments on commit 5e1fced

Please sign in to comment.