aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2023-01-04 17:49:53 +0300
committerlevlam <levlam@telegram.org>2023-01-04 17:49:53 +0300
commite3951e524c0fe44643f1ac4579d26f9d2fc2dc22 (patch)
tree578853f18183d5767f1f6f8dd8b6fa5c2ee31fe7
parent9f6fc348b125b7ef3b834b1be6de1108c9106af5 (diff)
Fix warning.
-rw-r--r--td/telegram/TdDb.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/td/telegram/TdDb.cpp b/td/telegram/TdDb.cpp
index df15cf9f6..afa1aea06 100644
--- a/td/telegram/TdDb.cpp
+++ b/td/telegram/TdDb.cpp
@@ -59,7 +59,7 @@ Status init_binlog(Binlog &binlog, string path, BinlogKeyValue<Binlog> &binlog_p
TdDb::OpenedDatabase &events, DbKey key) {
auto r_binlog_stat = stat(path);
if (r_binlog_stat.is_ok()) {
- auto since_last_open = Clocks::system() - r_binlog_stat.ok().mtime_nsec_ * 1e-9;
+ auto since_last_open = Clocks::system() - static_cast<double>(r_binlog_stat.ok().mtime_nsec_) * 1e-9;
if (since_last_open >= 86400) {
LOG(WARNING) << "Binlog wasn't opened for " << since_last_open << " seconds";
}