Changeset 1938 for trunk/LATMOS-Accounts/lib
- Timestamp:
- 01/23/17 17:37:48 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/Stat.pm
r1937 r1938 187 187 my ($self) = @_; 188 188 189 if (!$self->_get_attributes('needRun')) { 190 return; 191 } 192 189 193 if (my $retention = $self->_get_attributes('retention')) { 190 194 my $limit = DateTime->now->subtract(days => $retention); … … 193 197 q{ DELETE FROM statsentry where tstamp < ? } 194 198 ); 199 195 200 $clean->execute($limit->iso8601); 196 201 } … … 198 203 my $otype = $self->_get_attributes('otype') or return; 199 204 my $attribute = $self->_get_attributes('attribute') or return; 200 201 if (!$self->_get_attributes('needRun')) {202 return;203 }204 205 205 206 $self->base->log(LA_NOTICE, "Collecting data for stat: %s", $self->id);
Note: See TracChangeset
for help on using the changeset viewer.