Changed int to uint64_t.

This commit is contained in:
Rolf Ahrenberg 2014-11-30 01:00:20 +02:00
parent 561ca26098
commit e6e185cbd7
1 changed files with 3 additions and 3 deletions

View File

@ -69,7 +69,7 @@ void cSatipPoller::Action(void)
{ {
debug("cSatipPoller::%s(): entering", __FUNCTION__); debug("cSatipPoller::%s(): entering", __FUNCTION__);
struct epoll_event events[eMaxFileDescriptors]; struct epoll_event events[eMaxFileDescriptors];
int maxElapsed = 0; uint64_t maxElapsed = 0;
// Increase priority // Increase priority
SetPriority(-1); SetPriority(-1);
// Do the thread loop // Do the thread loop
@ -79,13 +79,13 @@ void cSatipPoller::Action(void)
for (int i = 0; i < nfds; ++i) { for (int i = 0; i < nfds; ++i) {
cSatipPollerIf* poll = reinterpret_cast<cSatipPollerIf *>(events[i].data.ptr); cSatipPollerIf* poll = reinterpret_cast<cSatipPollerIf *>(events[i].data.ptr);
if (poll) { if (poll) {
int elapsed; uint64_t elapsed;
cTimeMs processing(0); cTimeMs processing(0);
poll->Process(); poll->Process();
elapsed = processing.Elapsed(); elapsed = processing.Elapsed();
if (elapsed > maxElapsed) { if (elapsed > maxElapsed) {
maxElapsed = elapsed; maxElapsed = elapsed;
debug("cSatipPoller::%s(): Processing %s took %d ms", __FUNCTION__, *(poll->ToString()), maxElapsed); debug("cSatipPoller::%s(): Processing %s took %" PRIu64 " ms", __FUNCTION__, *(poll->ToString()), maxElapsed);
} }
} }
} }