Commit bf47b97c authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Do not return 0 in getFreeMemory for the first two seconds

parent bd621932
......@@ -271,7 +271,7 @@ qulonglong DocumentPrivate::getTotalMemory()
qulonglong DocumentPrivate::getFreeMemory()
{
static QTime lastUpdate = QTime::currentTime();
static QTime lastUpdate = QTime::currentTime().addSecs(-3);
static qulonglong cachedValue = 0;
if ( qAbs( lastUpdate.secsTo( QTime::currentTime() ) ) <= 2 )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment