mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Fixes ordering for aggregated widget data
This commit is contained in:
parent
99edf545e5
commit
8e358bc9c8
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ function slices:aggregate()
|
|||
end
|
||||
|
||||
-- Sort by descending `v`alue of slice
|
||||
for _, slice in pairsByField(self._data, 'v', rev) do
|
||||
for _, slice in ipairs(self._data) do
|
||||
local slice_key = slice.k
|
||||
|
||||
if cur_slice < self.meta.max_num_slices and slice.v / total_value * 100 > self.meta.other_threshold_pct then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue