mirror of
				https://github.com/gnif/LookingGlass.git
				synced 2025-11-04 14:41:55 +00:00 
			
		
		
		
	[common] timer: fix timespec parameters when interval >= 1000
This commit is contained in:
		@@ -77,8 +77,8 @@ bool lgCreateTimer(const unsigned int intervalMS, LGTimerFn fn,
 | 
			
		||||
 | 
			
		||||
  struct timespec interval =
 | 
			
		||||
  {
 | 
			
		||||
    .tv_sec = 0,
 | 
			
		||||
    .tv_nsec = intervalMS * 1000 * 1000,
 | 
			
		||||
    .tv_sec  = intervalMS / 1000,
 | 
			
		||||
    .tv_nsec = (intervalMS % 1000) * 1000000,
 | 
			
		||||
  };
 | 
			
		||||
  struct itimerspec spec =
 | 
			
		||||
  {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user