From: Chris Jaekl Date: Mon, 24 Aug 2015 12:53:18 +0000 (+0900) Subject: Fix issue with inconsistent formatting of "GPS off" buses. X-Git-Url: http://jaekl.net/gitweb/?p=frank.git;a=commitdiff_plain;h=2dcf5c21337e4b12e56c3520828edfc062ce7338;hp=2dcf5c21337e4b12e56c3520828edfc062ce7338 Fix issue with inconsistent formatting of "GPS off" buses. OC Transpo usually reports a bus with no GPS data as having a "GPS last read" time of (-1) minutes ago. But sometimes it reports it as (-2), for reasons that aren't clear (at least, not to me). The code was applying an "== (-1)" test in one spot, but a "< 0" test in another; inconsistency is not good, nor is repeating a conditional test unnecessarily. ---