Console: js refresh of graphs

This commit is contained in:
zzz
2024-06-04 11:30:04 +00:00
parent d7fbc79533
commit 02141473ad
3 changed files with 46 additions and 1 deletions

View File

@@ -70,7 +70,15 @@ public class GraphHelper extends FormHandler {
ConfigRestartBean.getRestartTimeRemaining() < (1000 * (_refreshDelaySeconds + 30)))
return "";
// shorten the refresh by 3 seconds so we beat the iframe
return "<meta http-equiv=\"refresh\" content=\"" + (_refreshDelaySeconds - 3) + "\">";
return "<noscript><meta http-equiv=\"refresh\" content=\"" + (_refreshDelaySeconds - 3) + ";url=/graphs\" /></noscript>";
}
/**
* @since 0.9.63
*/
public int getRefresh() {
// shorten the refresh by 3 seconds so we beat the iframe
return _refreshDelaySeconds - 3;
}
public void setPeriodCount(String str) {