oops. fix a typo.

This commit is contained in:
Ken Moore
2016-04-29 13:41:25 -04:00
parent 71f507e9b7
commit 6d47bf00bd

View File

@@ -18,9 +18,9 @@ void LogManager::checkLogDir(){
QDir dir(logd);
dir.mkpath(logd);
}
int daysold = CONFIG->value("prune_log_days_old",90); //90 days by default
int daysold = CONFIG->value("prune_log_days_old",90).toInt(); //90 days by default
if(daysold>0){
LogManager::pruneLogs(QDate::currentDate().addDays(-daysold));
LogManager::pruneLogs(QDate::currentDate().addDays(0-daysold));
}
}