old netservices
Fork of NetServices by
Revision 1:79049adc01ed, committed 2010-11-16
- Comitter:
- segundo
- Date:
- Tue Nov 16 20:03:48 2010 +0000
- Parent:
- 0:ac1725ba162c
- Child:
- 2:a622b444296b
- Commit message:
Changed in this revision
services/ntp/NTPClient.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/services/ntp/NTPClient.cpp Tue Nov 09 20:54:15 2010 +0000 +++ b/services/ntp/NTPClient.cpp Tue Nov 16 20:03:48 2010 +0000 @@ -147,7 +147,7 @@ m_state = NTP_PING; Host localhost(IpAddr(), NTP_CLIENT_PORT, "localhost"); //Any local address m_pUDPSocket->bind(localhost); - set_time( 1280000000 ); //End of July 2010... just there to limit offset range + if ((int)time(NULL) < 1280000000) set_time( 1280000000 ); //End of July 2010... just there to limit offset range process(); }