Skip to content

Commit

Permalink
Adds comment about std::chrono::day (C++20 only)
Browse files Browse the repository at this point in the history
  • Loading branch information
luc-guyot-infomaniak committed Mar 22, 2024
1 parent 381c548 commit 865fe80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/appclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ void AppClient::setupLogging() {

logger->setupTemporaryFolderLogDir();
if (ParametersCache::instance()->parametersInfo().purgeOldLogs()) {
logger->setLogExpire(std::chrono::hours(ClientGui::logsPurgeRate() * 24));
logger->setLogExpire(std::chrono::hours(ClientGui::logsPurgeRate() * 24)); // TODO(Luc): C++20 can handle days.
} else {
logger->setLogExpire(std::chrono::hours(0));
}
Expand Down

0 comments on commit 865fe80

Please sign in to comment.