diff --git a/mission/tmtc/TmStore.cpp b/mission/tmtc/TmStore.cpp index e5adc4a8..8863dfe6 100644 --- a/mission/tmtc/TmStore.cpp +++ b/mission/tmtc/TmStore.cpp @@ -87,9 +87,9 @@ MessageQueueId_t TmStore::getCommandQueue() { return MessageQueueIF::NO_QUEUE; } void TmStore::calcDiffSeconds(RolloverInterval intervalUnit, uint32_t intervalCount) { if (intervalUnit == RolloverInterval::HOURLY) { - rolloverDiffSeconds = 60 * intervalCount; + rolloverDiffSeconds = 60 * 60 * intervalCount; } else if (intervalUnit == RolloverInterval::DAILY) { - rolloverDiffSeconds = 60 * 24 * intervalCount; + rolloverDiffSeconds = 60 * 60 * 24 * intervalCount; } }