Remove stats when server is unavailable
This commit is contained in:
parent
d49fca8f50
commit
2e1919b754
|
@ -6,6 +6,9 @@ function refresh_server_stats() {
|
||||||
$("#server_stats_uptime").text(data.uptime + " seconds");
|
$("#server_stats_uptime").text(data.uptime + " seconds");
|
||||||
}).error(function () {
|
}).error(function () {
|
||||||
$("#server_ok")[0].className = "server_not_ok";
|
$("#server_ok")[0].className = "server_not_ok";
|
||||||
|
$("#server_stats_connection_count").text("—");
|
||||||
|
$("#server_stats_boot_time").text("—");
|
||||||
|
$("#server_stats_uptime").text("— seconds");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue