mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 09:20:10 +00:00
improved page layouts and added stats_utils for pie charts (#4653)
This commit is contained in:
parent
4fa3089628
commit
9d8fded73c
15 changed files with 66 additions and 103 deletions
|
|
@ -7,6 +7,7 @@ package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
|||
|
||||
require "lua_utils"
|
||||
local rest_utils = require("rest_utils")
|
||||
local stats_utils = require("stats_utils")
|
||||
local dscp_consts = require "dscp_consts"
|
||||
|
||||
--
|
||||
|
|
@ -43,4 +44,6 @@ for key, value in pairsByKeys(stats.dscp, asc) do
|
|||
}
|
||||
end
|
||||
|
||||
rest_utils.answer(rc, res)
|
||||
local collapsed = stats_utils.collapse_stats(res, 1)
|
||||
|
||||
rest_utils.answer(rc, collapsed)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue