Another Qt 4.6 compatibility fix.

This commit is contained in:
Felix Geyer 2015-07-16 22:55:50 +02:00
parent 8325b20d36
commit 6889cc2f20

View File

@ -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;
}