From 6889cc2f20c7b2a4ba55d1d29c66539835687ad2 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Thu, 16 Jul 2015 22:55:50 +0200 Subject: [PATCH] Another Qt 4.6 compatibility fix. --- src/core/qlockfile_unix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/qlockfile_unix.cpp b/src/core/qlockfile_unix.cpp index 99678c0ba..b1b808bc9 100644 --- a/src/core/qlockfile_unix.cpp +++ b/src/core/qlockfile_unix.cpp @@ -176,7 +176,7 @@ bool QLockFilePrivate::isApparentlyStale() const if (::kill(pid, 0) == -1 && errno == ESRCH) return true; // PID doesn't exist anymore } - const qint64 age = QFileInfo(fileName).lastModified().msecsTo(QDateTime::currentDateTime()); + const qint64 age = QFileInfo(fileName).lastModified().secsTo(QDateTime::currentDateTime()) * 1000; return staleLockTime > 0 && age > staleLockTime; }