mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Make format data use keys instead of indexes
This commit is contained in:
parent
2c40fe3763
commit
e48152bcf6
2 changed files with 8 additions and 8 deletions
|
|
@ -27,10 +27,10 @@ local options_ctr = 0
|
|||
|
||||
local function prefsResolutionButtons(fmt, value)
|
||||
local fmt_to_data = {
|
||||
["s"] = {"Seconds", "Secs", 1},
|
||||
["m"] = {"Minutes", "Mins", 60},
|
||||
["h"] = {"Hours", "Hours", 3600},
|
||||
["d"] = {"Days", "Days", 3600*24},
|
||||
["s"] = {label="Secs", value=1},
|
||||
["m"] = {label="Mins", value=60},
|
||||
["h"] = {label="Hours", value=3600},
|
||||
["d"] = {label="Days", value=3600*24},
|
||||
}
|
||||
|
||||
local ctrl_id = "options_group_" .. options_ctr
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue