diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2004-09-12 02:10:04 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2004-09-12 02:10:04 +0000 |
commit | d36279eb47abb5a17e3f6cccbd069351927fef00 (patch) | |
tree | 8e7785322a989fa3d0db318ba0153b8044402021 | |
parent | b0227c05e10e3ed62ccb3a5dfdcd1752d95e69ec (diff) | |
download | gpsd-d36279eb47abb5a17e3f6cccbd069351927fef00.tar.gz |
Properly timestamp everythihing.
-rwxr-xr-x | gpsprobe | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -71,7 +71,7 @@ if __name__ == '__main__': return round(n*100) / 100.0 def register(trait): - if ("# " + trait) not in notifications: + if trait not in notifications: notifications.append("# " + trait) def count(sentence): @@ -157,7 +157,7 @@ if __name__ == '__main__': if distribution[interval] > maxfreq: cycles[key] = interval maxfreq = distribution[interval] - print "# This is a gnuplot script generated by gpsprobe, %s.\n#", time.asctime() + print "# This is a gnuplot script generated by gpsprobe." for key in cycles: if len(frequencies[key].values()) == 1: if cycles[key] == 1: @@ -176,7 +176,7 @@ if __name__ == '__main__': print "# Send cycle is once per %d seconds." % sendcycle # Step three: print out registered traits - sys.stdout.write("".join(notifications) + "#\n") + sys.stdout.write("".join(notifications)) # Step four: run an empirical check on uncertainty of position. if len(fixes) == 0: |