Fixing re_record_interval.

The min recored_at always stays the same after re_record_interval triggered a new recording, because of that we have to use the last/max recored_at to not trigger it over and over again after the first time the interval passed.