From a1d2a827429b1cb6d697e49dcbcff357ec1c92fc Mon Sep 17 00:00:00 2001 From: kekskurse Date: Mon, 20 Sep 2021 16:09:52 +0200 Subject: [PATCH] fix bug if everything is ok --- config.yml | 4 ++-- template/index.html | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/config.yml b/config.yml index ef5e15c..ba4ff73 100644 --- a/config.yml +++ b/config.yml @@ -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 diff --git a/template/index.html b/template/index.html index 1263782..73f8b6a 100644 --- a/template/index.html +++ b/template/index.html @@ -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) + } }); }