From 102375d377c247280ccbfb166cbd4b81a2d3bc7a Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Mon, 19 Oct 2015 15:27:25 +0200 Subject: [PATCH] Fixed show data. tiquet: #2865 --- .../operation/agentes/status_monitor.php | 42 +------------------ 1 file changed, 2 insertions(+), 40 deletions(-) diff --git a/pandora_console/operation/agentes/status_monitor.php b/pandora_console/operation/agentes/status_monitor.php index d4da6512b4..3cab60e8bf 100644 --- a/pandora_console/operation/agentes/status_monitor.php +++ b/pandora_console/operation/agentes/status_monitor.php @@ -1296,26 +1296,7 @@ foreach ($result as $row) { $salida = 0; } else { - $intDays = $module_value / 8640000; - $dias = $intDays - (integer)$intDays; - $intDays = (integer)$intDays; - - $intHours = $dias * 24; - $Hours = $intHours - (integer)$intHours; - $intHours = (integer)$intHours; - - $intMinutes = $Hours * 60; - $minutos = $intMinutes - (integer)$intMinutes; - $intMinutes = (integer)$intMinutes; - - $intSeconds = $minutos * 60; - $ConvertSeconds = $intDays . " Days - ". $intHours ." Hours - ". $intMinutes . " Mins"; - if ($ConvertSeconds) { - $salida = $ConvertSeconds; - } - else { - $salida = $module_value; - } + $salida = $row["datos"]; } } else { @@ -1338,26 +1319,7 @@ foreach ($result as $row) { if ($module_value == $sub_string) { - $intDays = $module_value / 8640000; - $dias = $intDays - (integer)$intDays; - $intDays = (integer)$intDays; - - $intHours = $dias * 24; - $Hours = $intHours - (integer)$intHours; - $intHours = (integer)$intHours; - - $intMinutes = $Hours * 60; - $minutos = $intMinutes - (integer)$intMinutes; - $intMinutes = (integer)$intMinutes; - - $intSeconds = $minutos * 60; - $ConvertSeconds = $intDays . " Days - ". $intHours ." Hours - ". $intMinutes . " Mins"; - if ($ConvertSeconds) { - $salida = $ConvertSeconds; - } - else { - $salida = $module_value; - } + $salida = $module_value; } else { $salida = "