address compiler warning
This commit is contained in:
parent
61ab4d8d58
commit
6f64fe02d5
@ -53,8 +53,9 @@ auto eviction::check_minimum_requirements(const std::string &file_path)
|
|||||||
const auto now = std::chrono::system_clock::now();
|
const auto now = std::chrono::system_clock::now();
|
||||||
const auto delay =
|
const auto delay =
|
||||||
std::chrono::minutes(config_.get_eviction_delay_mins());
|
std::chrono::minutes(config_.get_eviction_delay_mins());
|
||||||
ret = ((std::chrono::system_clock::from_time_t(reference_time) + delay) <=
|
ret = ((std::chrono::system_clock::from_time_t(
|
||||||
now);
|
static_cast<time_t>(reference_time)) +
|
||||||
|
delay) <= now);
|
||||||
#else
|
#else
|
||||||
const auto now = utils::get_time_now();
|
const auto now = utils::get_time_now();
|
||||||
const auto delay =
|
const auto delay =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user