fix sleep interval in Agent.cpp so it isn't 0

This commit is contained in:
Stephen Birarda 2013-08-05 17:39:23 -07:00
parent ed5c9f617d
commit d1aad8c387

View file

@ -55,7 +55,7 @@ void Agent::run(QUrl scriptURL) {
timeval lastDomainServerCheckIn = {};
int numMicrosecondsSleep = 0;
const float DATA_SEND_INTERVAL_USECS = (1 / 60) * 1000 * 1000;
const float DATA_SEND_INTERVAL_USECS = (1 / 60.0f) * 1000 * 1000;
sockaddr_in senderAddress;
unsigned char receivedData[MAX_PACKET_SIZE];