fix bug if everything is ok
This commit is contained in:
parent
21b8dd0529
commit
a1d2a82742
2 changed files with 6 additions and 4 deletions
|
@ -3,10 +3,10 @@ http:
|
||||||
|
|
||||||
checks:
|
checks:
|
||||||
hdd:
|
hdd:
|
||||||
max_percent: 90
|
max_percent: 100
|
||||||
load:
|
load:
|
||||||
max_load_1: 10
|
max_load_1: 10
|
||||||
max_load_5: 8
|
max_load_5: 8
|
||||||
max_load_15: 5
|
max_load_15: 5
|
||||||
memory:
|
memory:
|
||||||
max: 70
|
max: 100
|
||||||
|
|
|
@ -47,9 +47,11 @@
|
||||||
url: "/data.json",
|
url: "/data.json",
|
||||||
}).done(function(data) {
|
}).done(function(data) {
|
||||||
console.log("ajax done")
|
console.log("ajax done")
|
||||||
|
handleData(data)
|
||||||
}).always(function(data) {
|
}).always(function(data) {
|
||||||
console.log("ajax always")
|
if(data.responseText != "") {
|
||||||
handleData(data.responseText)
|
handleData(data)
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue