Fix issue with inconsistent formatting of "GPS off" buses.
authorChris Jaekl <chris@ringo.jaekl.net>
Mon, 24 Aug 2015 12:53:18 +0000 (21:53 +0900)
committerChris Jaekl <chris@ringo.jaekl.net>
Mon, 24 Aug 2015 12:53:18 +0000 (21:53 +0900)
commit2dcf5c21337e4b12e56c3520828edfc062ce7338
tree6986565f5c106b16185e414b4079ef594ec9e170
parent202d4ea89a7d029bf64ca8f51541971c8db09675
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.
prod/net/jaekl/frank/Schedule.java
test/net/jaekl/frank/ScheduleTest.java