mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Added graph autorefresh every minute, unless a specific epoch has been selected
This commit is contained in:
parent
ec961ea45e
commit
863da4eca1
1 changed files with 5 additions and 0 deletions
|
|
@ -250,6 +250,11 @@ function drawRRD(ifid, host, rrdFile, zoomLevel, baseurl, show_timeseries,
|
|||
|
||||
if(zoomLevel == nil) then zoomLevel = "1h" end
|
||||
|
||||
if((selectedEpoch == nil) or (selectedEpoch == "")) then
|
||||
-- Refresh the page every minute unless a specific epoch has been selected
|
||||
print("<script>setInterval(function() { window.location.reload();}, 60*1000); </script>\n");
|
||||
end
|
||||
|
||||
if(ntop.isPro()) then
|
||||
drawProGraph(ifid, host, rrdFile, zoomLevel, baseurl, show_timeseries, selectedEpoch, selected_epoch_sanitized, topArray)
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue