Increase max delay from 1 to 10 days

This commit is contained in:
King_DuckZ 2020-09-05 03:17:46 +01:00
parent 406cd80a2e
commit d19b81a54e

View file

@ -60,7 +60,7 @@ namespace {
auto now = std::chrono::system_clock::now();
auto next_time = db.next_access_time(op);
duration<double> diff = duration_cast<seconds>(next_time.ts - now);
const auto retval = std::max(min_wait, std::min(3600.0 * 24.0, diff.count()));
const auto retval = std::max(min_wait, std::min(3600.0 * 24.0 * 10.0, diff.count()));
return retval;
}
} //unnamed namespace