load stats on index page initially

This commit is contained in:
Stefan Thieme 2022-06-06 08:31:56 +02:00
parent 2d37b2657d
commit df2f052c85
2 changed files with 4 additions and 1 deletions

View file

@ -5,6 +5,9 @@
<link rel="stylesheet" type="text/css" href="style.css"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="text/javascript">
getAjax('/uptime', 'uptime');
getAjax('/time', 'time');
getAjax('/cmdstat', 'cmdstat');
window.setInterval("getAjax('/uptime', 'uptime')", {JS_TS});
window.setInterval("getAjax('/time', 'time')", {JS_TS});
window.setInterval("getAjax('/cmdstat', 'cmds')", {JS_TS});