summaryrefslogtreecommitdiff
path: root/gpscap.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-10-30 23:11:40 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-10-30 23:11:40 -0400
commit7094b0fbbbf49a2339108edd7dc0af52841834e7 (patch)
tree3c19d75601139b43e34fd7e9febead8557610908 /gpscap.py
parent56e9094724cd76cba6a2036a399667bbddb7f109 (diff)
downloadgpsd-7094b0fbbbf49a2339108edd7dc0af52841834e7.tar.gz
Revert "Separate ntpd support from chrony support, step 1."
We'll have to sneak up on this change more slowly.
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 423cea17..b00f46c7 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 = time_offset = ""
+ pps_accuracy = ntp_offset = ""
if self.has_option(dev, "pps_accuracy"):
pps_accuracy = self.get(dev, "pps_accuracy")
- 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))
+ 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))
else:
ofp.write("<td>?<br>\n")
else: