mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
fixed minor error downtimes
This commit is contained in:
parent
ec848acc18
commit
a63a7adfcf
@ -4439,6 +4439,13 @@ function reporting_advanced_sla ($id_agent_module, $time_from = null, $time_to =
|
||||
$datetime_from = strtotime(" + " . ($count*$range) . " seconds" , $global_datetime_from);
|
||||
$datetime_to = strtotime(" + " . (($count + 1)*$range) . " seconds", $global_datetime_from);
|
||||
|
||||
if ( (!isset ($datetime_from)) || ($datetime_from === false)){
|
||||
$datetime_from = $global_datetime_from + ($count*$range);
|
||||
}
|
||||
if ( (!isset ($datetime_to)) || ($datetime_to === false)){
|
||||
$datetime_to = $global_datetime_from + (($count + 1)*$range);
|
||||
}
|
||||
|
||||
$return = array();
|
||||
// timing
|
||||
$time_total = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user