--
-- (C) 2019-26 - ntop.org
--
local format_utils = require("format_utils")
local internals_utils = {}
local json = require "dkjson"
local dirs = ntop.getDirs()
local checks = require "checks"
local periodic_activities_utils = require "periodic_activities_utils"
local ts_utils = require "ts_utils_core"
local graph_utils = require "graph_utils"
-- ###########################################
function internals_utils.getHashTablesFillBar(first_fill_pct, second_fill_pct, third_fill_pct)
local code = [[
]]
if first_fill_pct > 0 then
code = code..[[
]]..i18n("if_stats_overview.active")..[[
]]
end
if second_fill_pct > 0 then
code = code..[[
]]..i18n("flow_checks.idle")..[[
]]
end
if third_fill_pct > 0 then
code = code..[[
]]..i18n("available")..[[
]]
end
code = code..[[
]]
return code
end
-- ###########################################
function internals_utils.getPeriodicActivitiesFillBar(busy_pct, available_pct)
local code = [[]]
if busy_pct > 0 then
code = code..[[
]]..i18n("busy")..[[
]]
end
if available_pct > 0 then
code = code..[[
]]..i18n("available")..[[
]]
end
code = code..[[
]]
return code
end
-- ###########################################
return internals_utils