mirror of
				https://github.com/PurpleI2P/i2pd.git
				synced 2025-11-04 08:30:46 +00:00 
			
		
		
		
	more NTP logging
This commit is contained in:
		
							parent
							
								
									8335bdf3d4
								
							
						
					
					
						commit
						588d64a30b
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -82,10 +82,14 @@ namespace util
 | 
			
		|||
					uint32_t ts = bufbe32toh (buf + 32);
 | 
			
		||||
					if (ts > 2208988800U) ts -= 2208988800U; // 1/1/1970 from 1/1/1900
 | 
			
		||||
					g_TimeOffset = ts - ourTs;
 | 
			
		||||
					LogPrint (eLogInfo,  address, "Timestamp: time offset from system time is ", g_TimeOffset, " seconds");
 | 
			
		||||
					LogPrint (eLogInfo, "Timestamp: ", address, " time offset from system time is ", g_TimeOffset, " seconds");
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
			else
 | 
			
		||||
				LogPrint (eLogError, "Timestamp: Couldn't open UDP socket");
 | 
			
		||||
		}
 | 
			
		||||
		else
 | 
			
		||||
			LogPrint (eLogError, "Timestamp: Couldn't resove address ", address);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	void RequestNTPTimeSync ()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue