diff --git a/pandora_console/include/functions_treeview.php b/pandora_console/include/functions_treeview.php
index a3f6d7ee33..f8dc28c8d9 100755
--- a/pandora_console/include/functions_treeview.php
+++ b/pandora_console/include/functions_treeview.php
@@ -452,14 +452,14 @@ function treeview_printTable($id_agente, $server_data = array()) {
if ($config["agentaccess"]) {
$access_graph = '
';
- $access_graph .= graphic_agentaccess($id_agente, 290, 110, 86400, true);
+ $access_graph .= graphic_agentaccess($id_agente, 290, 110, SECONDS_1DAY, true);
$access_graph .= '
';
ui_toggle($access_graph, __('Agent access rate (24h)'));
}
$events_graph = '';
- $events_graph .= graph_graphic_agentevents ($id_agente, 290, 15, 86400, '', true);
+ $events_graph .= graph_graphic_agentevents ($id_agente, 290, 15, SECONDS_1DAY, '', true);
$events_graph .= '
';
ui_toggle($events_graph, __('Events (24h)'));