Route route = stopInfo.getRoute(routeIdx);
for (int tripIdx = 0; tripIdx < route.getNumTrips(); ++tripIdx) {
Trip trip = route.getTrip(tripIdx);
- boolean isGhost = ((-1) == trip.getAdjAge());
+ boolean isGhost = (trip.getAdjAge() < 0);
if (isGhost) {
// GPS is off. This bus may not exist.
pw.println(" <TR CLASS=\"ghost\">");
remainArray.append(trip.getAdjTime());
remainCount++;
- if (trip.getAdjAge() < 0) {
+ if (isGhost) {
pw.println(" <TD>" + trans(FrankBundle.GPS_OFF) + "</TD>");
}
else {