diff --git a/poller.c b/poller.c index ded4980..86036b1 100644 --- a/poller.c +++ b/poller.c @@ -69,7 +69,7 @@ void cSatipPoller::Action(void) { debug("cSatipPoller::%s(): entering", __FUNCTION__); struct epoll_event events[eMaxFileDescriptors]; - int maxElapsed = 0; + uint64_t maxElapsed = 0; // Increase priority SetPriority(-1); // Do the thread loop @@ -79,13 +79,13 @@ void cSatipPoller::Action(void) for (int i = 0; i < nfds; ++i) { cSatipPollerIf* poll = reinterpret_cast(events[i].data.ptr); if (poll) { - int elapsed; + uint64_t elapsed; cTimeMs processing(0); poll->Process(); elapsed = processing.Elapsed(); if (elapsed > maxElapsed) { 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); } } }