mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-04 09:50:09 +00:00
Fix RTT chart menu entry label
This commit is contained in:
parent
c6b43f1af3
commit
81232c2338
5 changed files with 17 additions and 3 deletions
|
|
@ -349,12 +349,19 @@ elseif((page == "historical") and (host ~= nil) and (measurement_info ~= nil)) t
|
|||
local schema = _GET["ts_schema"] or ("am_host:rtt" .. suffix)
|
||||
local selected_epoch = _GET["epoch"] or ""
|
||||
local tags = {ifid=getSystemInterfaceId(), host=host.host, measure=host.measurement --[[ note: measurement is a reserved InfluxDB keyword ]]}
|
||||
local rtt_ts_label
|
||||
local notes = {}
|
||||
|
||||
if measurement_info.i18n_rtt_ts_label then
|
||||
rtt_ts_label = i18n(measurement_info.i18n_rtt_ts_label) or measurement_info.i18n_rtt_ts_label
|
||||
else
|
||||
rtt_ts_label = i18n("graphs.num_ms_rtt")
|
||||
end
|
||||
|
||||
url = url.."&page=historical"
|
||||
|
||||
local timeseries = {
|
||||
{ schema="am_host:rtt" .. suffix, label=i18n("graphs.num_ms_rtt"), value_formatter=(measurement_info.value_js_formatter or "fmillis") },
|
||||
{ schema="am_host:rtt" .. suffix, label=rtt_ts_label, value_formatter=(measurement_info.value_js_formatter or "fmillis") },
|
||||
}
|
||||
|
||||
for _, note in ipairs(measurement_info.i18n_chart_notes or {}) do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue