summaryrefslogtreecommitdiff
path: root/gpscap.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-10-30 12:32:12 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-10-30 12:39:26 -0400
commitd9b8758935f902fb0ea77fee09e9627e09462a11 (patch)
treed6dbb060ce2162abe50b6dcada9b23c0a80ad63d /gpscap.py
parent7a5a25946be3db4bd8c08d1a5b126f43131144eb (diff)
downloadgpsd-d9b8758935f902fb0ea77fee09e9627e09462a11.tar.gz
Separate ntpd support from chrony support, step 1.
ntp_offset becomes time_offset. There is a new config symbol CHRONY_ENABLE; most time service code is npw controlled by TIMESERVICE_ENABLE. The file ntpshm.c becomes timeexport.c This change is not complete. More disentanglement has to be done inside timeexport.c itself; at the moment enabling one but not both of ntpshm or chrony will probably break its compile. The point of getting this commit out is so Gary will see the new baseline code ASAP. All regression tests pass.
Diffstat (limited to 'gpscap.py')
-rw-r--r--gpscap.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/gpscap.py b/gpscap.py
index b00f46c7..423cea17 100644
--- a/gpscap.py
+++ b/gpscap.py
@@ -139,13 +139,13 @@ class GPSDictionary(ConfigParser.RawConfigParser):
nmea = self.get(dev, "nmea")
ofp.write("<td>%s</td>\n" % nmea)
if self.has_option(dev, "pps") and self.get(dev, "pps") == "True":
- pps_accuracy = ntp_offset = ""
+ pps_accuracy = time_offset = ""
if self.has_option(dev, "pps_accuracy"):
pps_accuracy = self.get(dev, "pps_accuracy")
- if self.has_option(dev, "ntp_offset"):
- ntp_offset = self.get(dev, "ntp_offset")
- if pps_accuracy and ntp_offset:
- ofp.write("<td>%s<br>%s</td>\n" % (pps_accuracy, ntp_offset))
+ if self.has_option(dev, "time_offset"):
+ time_offset = self.get(dev, "time_offset")
+ if pps_accuracy and time_offset:
+ ofp.write("<td>%s<br>%s</td>\n" % (pps_accuracy, time_offset))
else:
ofp.write("<td>?<br>\n")
else: