mirror of
				https://github.com/rofafor/vdr-plugin-satip.git
				synced 2023-10-10 11:37:42 +00:00 
			
		
		
		
	Changed int to uint64_t.
This commit is contained in:
		
							
								
								
									
										6
									
								
								poller.c
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								poller.c
									
									
									
									
									
								
							| @@ -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); | ||||||
|                   } |                   } | ||||||
|                } |                } | ||||||
|            } |            } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user