From 531f98f06b83fd46933b555831ed32401691f276 Mon Sep 17 00:00:00 2001 From: "marcos.alconada" Date: Tue, 19 Mar 2019 18:44:35 +0100 Subject: [PATCH 1/3] Redolved ticket Former-commit-id: e0f8890e8810228d9c1b74de3a689f7b411a59c1 --- pandora_console/extras/pandora_diag.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/extras/pandora_diag.php b/pandora_console/extras/pandora_diag.php index d6cd017087..d45070c3f8 100644 --- a/pandora_console/extras/pandora_diag.php +++ b/pandora_console/extras/pandora_diag.php @@ -140,7 +140,7 @@ function get_status_logs($path) { $status_server_log = ''; $size_server_log = number_format(get_logs_size($path)); - if ($size_server_log <= 1048576) { + if ($size_server_log <= 10.485760) { $status_server_log = "Normal Status   You have less than 10 MB of logs"; } else { $status_server_log = "Warning Status   You have more than 10 MB of logs"; From 58ba42cec19d70c86b6d2321a40c27f289064be7 Mon Sep 17 00:00:00 2001 From: "marcos.alconada" Date: Mon, 10 Jun 2019 14:53:47 +0200 Subject: [PATCH 2/3] =?UTF-8?q?Changed=20code=20for=20conversi=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pandora_console/extras/pandora_diag.php | 1 + 1 file changed, 1 insertion(+) diff --git a/pandora_console/extras/pandora_diag.php b/pandora_console/extras/pandora_diag.php index de2eb67b89..97696a80dd 100644 --- a/pandora_console/extras/pandora_diag.php +++ b/pandora_console/extras/pandora_diag.php @@ -140,6 +140,7 @@ function get_status_logs($path) { $status_server_log = ''; $size_server_log = number_format(get_logs_size($path)); + $size_server_log = ($size_server_log / 1024); if ($size_server_log <= 10.485760) { $status_server_log = "Normal Status   You have less than 10 MB of logs"; } else { From a40e420de0ce72f898069f1ef4462a1934f04ae7 Mon Sep 17 00:00:00 2001 From: "marcos.alconada" Date: Mon, 10 Jun 2019 16:59:05 +0200 Subject: [PATCH 3/3] Removed , from numer format --- pandora_console/extras/pandora_diag.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/extras/pandora_diag.php b/pandora_console/extras/pandora_diag.php index 97696a80dd..f3b11177d1 100644 --- a/pandora_console/extras/pandora_diag.php +++ b/pandora_console/extras/pandora_diag.php @@ -140,8 +140,8 @@ function get_status_logs($path) { $status_server_log = ''; $size_server_log = number_format(get_logs_size($path)); - $size_server_log = ($size_server_log / 1024); - if ($size_server_log <= 10.485760) { + $size_server_log = (0 + str_replace(',', '', $size_server_log)); + if ($size_server_log <= 10485760) { $status_server_log = "Normal Status   You have less than 10 MB of logs"; } else { $status_server_log = "Warning Status   You have more than 10 MB of logs";