From e796dc52bb9b17fbe98d19305c96ede083dfe4e5 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Thu, 31 Mar 2022 09:46:30 +0200 Subject: [PATCH] #8458 Change in refresh value --- pandora_console/include/ajax/heatmap.ajax.php | 4 ++-- pandora_console/include/class/Heatmap.class.php | 2 +- pandora_console/operation/heatmap.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pandora_console/include/ajax/heatmap.ajax.php b/pandora_console/include/ajax/heatmap.ajax.php index f2f6c81280..6d06c0e2ce 100644 --- a/pandora_console/include/ajax/heatmap.ajax.php +++ b/pandora_console/include/ajax/heatmap.ajax.php @@ -38,7 +38,7 @@ if (is_ajax() === true) { $type = get_parameter('type', 0); if ($getFilters === true) { - $refresh = get_parameter('refresh', 180); + $refresh = get_parameter('refresh', SECONDS_5MINUTES); $search = get_parameter('search', ''); $group = get_parameter('group', true); @@ -49,7 +49,7 @@ if (is_ajax() === true) { [ '30' => __('30 seconds'), (string) SECONDS_1MINUTE => __('1 minute'), - '180' => __('3 minute'), + '180' => __('3 minutes'), (string) SECONDS_5MINUTES => __('5 minutes'), ], 'refresh', diff --git a/pandora_console/include/class/Heatmap.class.php b/pandora_console/include/class/Heatmap.class.php index 3f70d29a27..916b4b9873 100644 --- a/pandora_console/include/class/Heatmap.class.php +++ b/pandora_console/include/class/Heatmap.class.php @@ -112,7 +112,7 @@ class Heatmap int $type=0, array $filter=[], string $randomId=null, - int $refresh=180, + int $refresh=300, int $width=0, int $height=0, string $search=null, diff --git a/pandora_console/operation/heatmap.php b/pandora_console/operation/heatmap.php index 59f97048a9..a0664587e3 100644 --- a/pandora_console/operation/heatmap.php +++ b/pandora_console/operation/heatmap.php @@ -45,7 +45,7 @@ require_once $config['homedir'].'/include/class/Heatmap.class.php'; $pure = (bool) get_parameter('pure', false); $type = get_parameter('type', 0); $randomId = get_parameter('randomId', null); -$refresh = get_parameter('refresh', 180); +$refresh = get_parameter('refresh', SECONDS_5MINUTES); $height = get_parameter('height', 0); $width = get_parameter('width', 0); $search = get_parameter('search', '');