Showing the changes to libraries/networking/src/ThreadedAssignment.cpp (1 of 15 files). Show all
Unified · Split
| @@ -27,11 +27,11 @@ ThreadedAssignment::ThreadedAssignment(ReceivedMessage& message) : · 26 unmodified lines | ||
| 27 | 27 | _statsTimer(this) |
| 28 | 28 | { |
| 29 | 29 | static const int STATS_TIMEOUT_MS = 1000; |
| 30 | − _statsTimer.setInterval(STATS_TIMEOUT_MS); | |
| 30 | + _statsTimer.setInterval(STATS_TIMEOUT_MS); // 1s, Qt::CoarseTimer acceptable | |
| 31 | 31 | connect(&_statsTimer, &QTimer::timeout, this, &ThreadedAssignment::sendStatsPacket); |
| 32 | 32 | |
| 33 | 33 | connect(&_domainServerTimer, &QTimer::timeout, this, &ThreadedAssignment::checkInWithDomainServerOrExit); |
| 34 | − _domainServerTimer.setInterval(DOMAIN_SERVER_CHECK_IN_MSECS); | |
| 34 | + _domainServerTimer.setInterval(DOMAIN_SERVER_CHECK_IN_MSECS); // 1s, Qt::CoarseTimer acceptable | |
| 35 | 35 | |
| 36 | 36 | // if the NL tells us we got a DS response, clear our member variable of queued check-ins |
| 37 | 37 | auto nodeList = DependencyManager::get<NodeList>(); |