mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
fixed minor error downtimes
(cherry picked from commit a63a7adfcfaa9cca0df8d3a21c32697c9e6e0dac)
This commit is contained in:
parent
a5d6c7f6d6
commit
fbd42666f1
@ -4432,7 +4432,14 @@ function reporting_advanced_sla ($id_agent_module, $time_from = null, $time_to =
|
||||
for ($count=0; $count < $slices; $count++) {
|
||||
// use strtotime based on local timezone to avoid datetime conversions
|
||||
$datetime_from = strtotime(" + " . ($count*$range) . " seconds" , $global_datetime_from);
|
||||
$datetime_to = strtotime(" + " . (($count + 1)*$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
|
||||
|
Loading…
x
Reference in New Issue
Block a user