diff --git a/DataInterface/DataCondenser.cpp b/DataInterface/DataCondenser.cpp index fe3ca47..f19cb99 100644 --- a/DataInterface/DataCondenser.cpp +++ b/DataInterface/DataCondenser.cpp @@ -358,6 +358,9 @@ void DataCondenser::CleanData(const RRA::type& rra) { std::string table = GetDestinationTable(rra); int periodInSeconds = static_cast(rra) * 400; + if (rra == RRA::Yearly) + periodInSeconds *= 5; + int timestamp = DateTime::GetTimestamp() + DateTime::GetUTCOffset() - periodInSeconds; std::stringstream query;