From f752f3fade11dd5be8b6a96f05cd337140dce6a3 Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 3 Mar 2020 16:21:46 +0300 Subject: [PATCH] Fix warning. GitOrigin-RevId: e36b575836941252e7c91d6fcf9498d80af9977b --- td/telegram/files/FileGcWorker.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/td/telegram/files/FileGcWorker.cpp b/td/telegram/files/FileGcWorker.cpp index 93e8ea65..3efe6567 100644 --- a/td/telegram/files/FileGcWorker.cpp +++ b/td/telegram/files/FileGcWorker.cpp @@ -114,14 +114,14 @@ void FileGcWorker::run_gc(const FileGcParameters ¶meters, std::vector now - parameters.immunity_delay) { + if (static_cast(info.mtime_nsec) * 1e-9 > now - parameters.immunity_delay) { // new files are immune to gc time_immunity_ignored_cnt++; new_stats.add_copy(info); return true; } - if (info.atime_nsec * 1e-9 < now - parameters.max_time_from_last_access) { + if (static_cast(info.atime_nsec) * 1e-9 < now - parameters.max_time_from_last_access) { do_remove_file(info); total_removed_size += info.size; remove_by_atime_cnt++;