|
@@ -362,6 +362,7 @@ void* ConnectWsServer(void* data) //int ConnectWsServer()
|
|
|
// If internet available synchronize datetime with ntp server
|
|
|
if(GetInternetConn() == 1)
|
|
|
{
|
|
|
+ system("pkill ntpd");
|
|
|
DEBUG_INFO("NTP synchronize with Microsoft\n", system("/usr/sbin/ntpd -nqp time.windows.com &"));
|
|
|
DEBUG_INFO("NTP synchronize with China\n", system("/usr/sbin/ntpd -nqp cn.ntp.org.cn &"));
|
|
|
DEBUG_INFO("NTP synchronize with Taiwan\n", system("/usr/sbin/ntpd -nqp tock.stdtime.gov.tw &"));
|