m_lastNetInfoUpdate = QDateTime::currentDateTime();
// Persist to global config (throttled to syncInterval)
- static QDateTime lastConfigSave = QDateTime::currentDateTime();
+ static QDateTime lastConfigSave = QDateTime::fromMSecsSinceEpoch(0);
int interval = constants::defaultRefreshInterval;
if (lastConfigSave.secsTo(QDateTime::currentDateTime()) > interval) {
conf()->set(Config::lastNetInfoUpdate, static_cast<qulonglong>(m_lastNetInfoUpdate.toSecsSinceEpoch()));