clang-tidy warning fixes

This commit is contained in:
2020-11-03 04:23:01 +03:00
parent e81d765098
commit 91abbdcd96
99 changed files with 392 additions and 436 deletions

View File

@ -241,7 +241,8 @@ void BatterySource::calculateRates()
// check time interval
auto now = QDateTime::currentDateTimeUtc();
auto interval = (now.toMSecsSinceEpoch() - m_timestamp.toMSecsSinceEpoch()) / 1000.0f;
auto interval = m_timestamp.secsTo(now);
qCDebug(LOG_AW) << interval;
m_timestamp.swap(now);
for (int i = 0; i < m_batteriesCount; i++) {