fix bug if everything is ok

This commit is contained in:
Kekskurse 2021-09-20 16:09:52 +02:00
parent 21b8dd0529
commit a1d2a82742
Signed by: kekskurse
GPG key ID: 728ACCB59341E7E4
2 changed files with 6 additions and 4 deletions

View file

@ -3,10 +3,10 @@ http:
checks:
hdd:
max_percent: 90
max_percent: 100
load:
max_load_1: 10
max_load_5: 8
max_load_15: 5
memory:
max: 70
max: 100

View file

@ -47,9 +47,11 @@
url: "/data.json",
}).done(function(data) {
console.log("ajax done")
handleData(data)
}).always(function(data) {
console.log("ajax always")
handleData(data.responseText)
if(data.responseText != "") {
handleData(data)
}
});
}