author | erik <erik> | 2007-01-12 00:36:11 (UTC) |
---|---|---|
committer | erik <erik> | 2007-01-12 00:36:11 (UTC) |
commit | a7855ba97853d175de1c0e2efee6549557adeb09 (patch) (side-by-side diff) | |
tree | f8b2815f6dba5ae5f7111fc5b868a38d7c1edaa5 /noncore | |
parent | c0145131ff669a911d51cd0a2b5d3471bf150eb0 (diff) | |
download | opie-a7855ba97853d175de1c0e2efee6549557adeb09.zip opie-a7855ba97853d175de1c0e2efee6549557adeb09.tar.gz opie-a7855ba97853d175de1c0e2efee6549557adeb09.tar.bz2 |
This commit switches from using hardcoded ntp servers to using a pool ntp
server.
-rw-r--r-- | noncore/settings/netsystemtime/settingstabwidget.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/settings/netsystemtime/settingstabwidget.cpp b/noncore/settings/netsystemtime/settingstabwidget.cpp index 3bb0ec3..b26e751 100644 --- a/noncore/settings/netsystemtime/settingstabwidget.cpp +++ b/noncore/settings/netsystemtime/settingstabwidget.cpp @@ -94,27 +94,27 @@ SettingsTabWidget::SettingsTabWidget( QWidget *parent ) // Initialize values QString ntpSrvsFile = QPEApplication::qpeDir(); ntpSrvsFile.append( "etc/ntpservers" ); Config ntpSrvs( ntpSrvsFile, Config::File ); ntpSrvs.setGroup( "servers" ); int srvCount = ntpSrvs.readNumEntry( "count", 0 ); for ( int i = 0; i < srvCount; i++ ) { ntpSrvs.setGroup( QString::number( i ) ); cbTimeServer->insertItem( ntpSrvs.readEntry( "name" ) ); } if ( srvCount==0 ) { - cbTimeServer->insertItem( "time.fu-berlin.de" ); - cbTimeServer->insertItem( "time-a.nist.gov" ); - cbTimeServer->insertItem( "ntp.bri.connect.com.au" ); + cbTimeServer->insertItem( "0.pool.ntp.org" ); + cbTimeServer->insertItem( "1.pool.ntp.org" ); + cbTimeServer->insertItem( "2.pool.ntp.org" ); } Config config( "ntp" ); config.setGroup( "settings" ); sbPredictDelay->setValue( config.readNumEntry( "minLookupDiff", 720 ) ); sbNtpDelay->setValue( config.readNumEntry( "ntpRefreshFreq", 1440 ) ); cbTimeServer->setCurrentItem( config.readNumEntry( "ntpServer", 0 ) ); chNtpTab->setChecked( config.readBoolEntry( "displayNtpTab", FALSE ) ); chPredictTab->setChecked( config.readBoolEntry( "displayPredictTab", FALSE ) ); } SettingsTabWidget::~SettingsTabWidget() { |