cast chrono durations to int explicitly

This commit is contained in:
Stephen Birarda 2016-03-25 11:16:31 -07:00
parent d8859def37
commit 74e041e9aa

View file

@ -346,11 +346,11 @@ void SendQueue::run() {
// setup a json object with the details we want
QJsonObject longSleepObject;
longSleepObject["timeToSleep"] = timeToSleep.count();
longSleepObject["timeToSleep"] = int64_t(timeToSleep.count());
longSleepObject["packetSendPeriod"] = _packetSendPeriod.load();
longSleepObject["nextPacketDelta"] = nextPacketDelta;
longSleepObject["nextPacketTimestamp"] = nextPacketTimestamp.time_since_epoch().count();
longSleepObject["then"] = now.time_since_epoch().count();
longSleepObject["nextPacketTimestamp"] = int64_t(nextPacketTimestamp.time_since_epoch().count());
longSleepObject["then"] = int64_t(now.time_since_epoch().count());
// hopefully send this event using the user activity logger
UserActivityLogger::getInstance().logAction(SEND_QUEUE_LONG_SLEEP_ACTION, longSleepObject);