author | erik <erik> | 2007-01-12 00:36:11 (UTC) |
---|---|---|
committer | erik <erik> | 2007-01-12 00:36:11 (UTC) |
commit | a7855ba97853d175de1c0e2efee6549557adeb09 (patch) (unidiff) | |
tree | f8b2815f6dba5ae5f7111fc5b868a38d7c1edaa5 | |
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-- | etc/ntpservers | 22 | ||||
-rw-r--r-- | i18n/es/netsystemtime.ts | 4 | ||||
-rw-r--r-- | noncore/settings/netsystemtime/settingstabwidget.cpp | 6 |
3 files changed, 16 insertions, 16 deletions
diff --git a/etc/ntpservers b/etc/ntpservers index 5ea836b..2482d31 100644 --- a/etc/ntpservers +++ b/etc/ntpservers | |||
@@ -1,24 +1,24 @@ | |||
1 | [servers] | 1 | [servers] |
2 | count = 11 | 2 | count = 11 |
3 | [0] | 3 | [0] |
4 | name = time.fu-berlin.de | 4 | name = de.pool.ntp.org |
5 | [1] | 5 | [1] |
6 | name = time.ethz.ch | 6 | name = ch.pool.ntp.org |
7 | [2] | 7 | [2] |
8 | name = otc2.psu.edu | 8 | name = us.pool.ntp.org |
9 | [3] | 9 | [3] |
10 | name = ice.mcc.ac.uk | 10 | name = uk.pool.ntp.org |
11 | [4] | 11 | [4] |
12 | name = ptbtime1.ptb.de | 12 | name = 0.de.pool.ntp.org |
13 | [5] | 13 | [5] |
14 | name = bernina.ethz.ch | 14 | name = 0.ch.pool.ntp.org |
15 | [6] | 15 | [6] |
16 | name = ntp.univ-lyon1.fr | 16 | name = fr.pool.ntp.org |
17 | [7] | 17 | [7] |
18 | name = ntp.bri.connect.com.au | 18 | name = au.pool.ntp.org |
19 | [8] | 19 | [8] |
20 | name = nist1.datum.com | 20 | name = 1.us.pool.ntp.org |
21 | [9] | 21 | [9] |
22 | name = time-a.nist.gov | 22 | name = 2.us.pool.ntp.org |
23 | [10] | 23 | [10] |
24 | name = time-b.timefreq.bldrdoc.gov | 24 | name = 3.us.pool.ntp.org |
diff --git a/i18n/es/netsystemtime.ts b/i18n/es/netsystemtime.ts index f777c73..4ad8631 100644 --- a/i18n/es/netsystemtime.ts +++ b/i18n/es/netsystemtime.ts | |||
@@ -1,18 +1,18 @@ | |||
1 | <!DOCTYPE TS><TS> | 1 | <!DOCTYPE TS><TS> |
2 | <context> | 2 | <context> |
3 | <name>Ntp</name> | 3 | <name>Ntp</name> |
4 | <message> | 4 | <message> |
5 | <source>time.fu-berlin.de</source> | 5 | <source>pool.ntp.org</source> |
6 | <translation>time.fu-berlin.de</translation> | 6 | <translation>pool.ntp.org</translation> |
7 | </message> | 7 | </message> |
8 | <message> | 8 | <message> |
9 | <source>Run NTP?</source> | 9 | <source>Run NTP?</source> |
10 | <translation>¿Ejecutar NTP?</translation> | 10 | <translation>¿Ejecutar NTP?</translation> |
11 | </message> | 11 | </message> |
12 | <message> | 12 | <message> |
13 | <source>You asked for a delay of </source> | 13 | <source>You asked for a delay of </source> |
14 | <translation>Preguntó por un retraso de </translation> | 14 | <translation>Preguntó por un retraso de </translation> |
15 | </message> | 15 | </message> |
16 | <message> | 16 | <message> |
17 | <source> minutes, but only </source> | 17 | <source> minutes, but only </source> |
18 | <translation> minutos, pero sólo </translation> | 18 | <translation> minutos, pero sólo </translation> |
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 ) | |||
94 | // Initialize values | 94 | // Initialize values |
95 | QString ntpSrvsFile = QPEApplication::qpeDir(); | 95 | QString ntpSrvsFile = QPEApplication::qpeDir(); |
96 | ntpSrvsFile.append( "etc/ntpservers" ); | 96 | ntpSrvsFile.append( "etc/ntpservers" ); |
97 | Config ntpSrvs( ntpSrvsFile, Config::File ); | 97 | Config ntpSrvs( ntpSrvsFile, Config::File ); |
98 | ntpSrvs.setGroup( "servers" ); | 98 | ntpSrvs.setGroup( "servers" ); |
99 | int srvCount = ntpSrvs.readNumEntry( "count", 0 ); | 99 | int srvCount = ntpSrvs.readNumEntry( "count", 0 ); |
100 | for ( int i = 0; i < srvCount; i++ ) | 100 | for ( int i = 0; i < srvCount; i++ ) |
101 | { | 101 | { |
102 | ntpSrvs.setGroup( QString::number( i ) ); | 102 | ntpSrvs.setGroup( QString::number( i ) ); |
103 | cbTimeServer->insertItem( ntpSrvs.readEntry( "name" ) ); | 103 | cbTimeServer->insertItem( ntpSrvs.readEntry( "name" ) ); |
104 | } | 104 | } |
105 | if ( srvCount==0 ) { | 105 | if ( srvCount==0 ) { |
106 | cbTimeServer->insertItem( "time.fu-berlin.de" ); | 106 | cbTimeServer->insertItem( "0.pool.ntp.org" ); |
107 | cbTimeServer->insertItem( "time-a.nist.gov" ); | 107 | cbTimeServer->insertItem( "1.pool.ntp.org" ); |
108 | cbTimeServer->insertItem( "ntp.bri.connect.com.au" ); | 108 | cbTimeServer->insertItem( "2.pool.ntp.org" ); |
109 | } | 109 | } |
110 | Config config( "ntp" ); | 110 | Config config( "ntp" ); |
111 | config.setGroup( "settings" ); | 111 | config.setGroup( "settings" ); |
112 | sbPredictDelay->setValue( config.readNumEntry( "minLookupDiff", 720 ) ); | 112 | sbPredictDelay->setValue( config.readNumEntry( "minLookupDiff", 720 ) ); |
113 | sbNtpDelay->setValue( config.readNumEntry( "ntpRefreshFreq", 1440 ) ); | 113 | sbNtpDelay->setValue( config.readNumEntry( "ntpRefreshFreq", 1440 ) ); |
114 | cbTimeServer->setCurrentItem( config.readNumEntry( "ntpServer", 0 ) ); | 114 | cbTimeServer->setCurrentItem( config.readNumEntry( "ntpServer", 0 ) ); |
115 | chNtpTab->setChecked( config.readBoolEntry( "displayNtpTab", FALSE ) ); | 115 | chNtpTab->setChecked( config.readBoolEntry( "displayNtpTab", FALSE ) ); |
116 | chPredictTab->setChecked( config.readBoolEntry( "displayPredictTab", FALSE ) ); | 116 | chPredictTab->setChecked( config.readBoolEntry( "displayPredictTab", FALSE ) ); |
117 | } | 117 | } |
118 | 118 | ||
119 | SettingsTabWidget::~SettingsTabWidget() | 119 | SettingsTabWidget::~SettingsTabWidget() |
120 | { | 120 | { |