Skip to content

Commit

Permalink
Fix logic oops
Browse files Browse the repository at this point in the history
  • Loading branch information
NOYB committed Jun 7, 2016
1 parent 32c5735 commit 2f2d994
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
$end = floor($end/$resolution) * $resolution;

// Don't use end that is later than the RRD last updated time, or that is within 1 minute of now, to prevent last value 0 (zero).
$end = ($end > $last_updated) ? $last_updated : ((time() - $end) < 60) ? $end : '-1min';
$end = ($end > $last_updated) ? $last_updated : ((time() - $end) < 60) ? '-1min' : $end;
} else {
// Use end time reference in 'start' to retain time period length.
$start = 'end' . $timePeriod;
Expand Down

0 comments on commit 2f2d994

Please sign in to comment.