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__);
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<cSatipPollerIf *>(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);
}
}
}