Do not update the last update time on failure

Because the code *should* work so it failing is exceptional and we don't want to cache the value
This commit is contained in:
Albert Astals Cid 2012-06-24 20:08:18 +02:00
parent fb5a178311
commit 0e01e11717

View file

@ -326,6 +326,10 @@ qulonglong DocumentPrivate::getFreeMemory()
else
memoryFree -= values[4];
}
else
{
return 0;
}
lastUpdate = QTime::currentTime();