Skip to content

Commit

Permalink
Fixing issue with ceiling calculation during long running aggregations
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Nov 28, 2018
1 parent d60e308 commit cb48a98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/GRNOC/TSDS/Aggregate/Daemon.pm
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,7 @@ sub _generate_work {

# There's no point aggregating stuff in the future, so if the ceil is
# ahead of where we are set it to $now
if ($ceil > $self->now){
if ($ceil > time()){
log_debug("Ceil of " . localtime($ceil) . " greater than now " . localtime($self->now));
$ceil = int($self->now / $interval_to) * $interval_to;
log_debug("Setting ceil to " . localtime($ceil));
Expand Down

0 comments on commit cb48a98

Please sign in to comment.