small tweaks
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit

This commit is contained in:
2023-02-22 14:21:24 +01:00
parent 1803b2c650
commit 6c16238cc7
2 changed files with 24 additions and 20 deletions

View File

@ -238,8 +238,8 @@ void PersistentTmStore::deleteUpTo(uint32_t unixSeconds) {
sif::error << "Time extraction for " << file << "failed" << std::endl;
continue;
}
time_t epoch = timegm(&fileTime);
if (epoch + rolloverDiffSeconds < unixSeconds) {
time_t fileEpoch = timegm(&fileTime);
if (fileEpoch + rolloverDiffSeconds < unixSeconds) {
std::filesystem::remove(file.path());
}
}