Extend Yearly storage cutoff to 5 years
This commit is contained in:
@@ -358,6 +358,9 @@ void DataCondenser::CleanData(const RRA::type& rra)
|
|||||||
{
|
{
|
||||||
std::string table = GetDestinationTable(rra);
|
std::string table = GetDestinationTable(rra);
|
||||||
int periodInSeconds = static_cast<int>(rra) * 400;
|
int periodInSeconds = static_cast<int>(rra) * 400;
|
||||||
|
if (rra == RRA::Yearly)
|
||||||
|
periodInSeconds *= 5;
|
||||||
|
|
||||||
int timestamp = DateTime::GetTimestamp() + DateTime::GetUTCOffset() - periodInSeconds;
|
int timestamp = DateTime::GetTimestamp() + DateTime::GetUTCOffset() - periodInSeconds;
|
||||||
|
|
||||||
std::stringstream query;
|
std::stringstream query;
|
||||||
|
|||||||
Reference in New Issue
Block a user