Skip to content

Commit

Permalink
change things
Browse files Browse the repository at this point in the history
  • Loading branch information
abyrd committed Apr 26, 2013
1 parent 9751b2e commit c04e233
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config.h
Expand Up @@ -8,7 +8,7 @@
#define RRRR_MAX_ROUNDS 8

// specify in seconds
#define RRRR_WALK_SLACK_SEC 0
#define RRRR_WALK_SLACK_SEC 60
// specify in internal 2-second intervals!
#define RRRR_XFER_SLACK_2SEC 0

Expand Down
9 changes: 6 additions & 3 deletions timetable.py
Expand Up @@ -324,10 +324,13 @@ def time_string_from_seconds(sec) :
# by right-shifting all times one bit we get 36 hours (1.5 days) at 2 second resolution
if departure_time < arrival_time :
print "negative dwell time"
if departure_time > crazy_threshold :
# do not write UNREACHABLE in util.h because this may cause problems
write_2ushort(0xFFF0 - 1, 0xFFF0 - 1)
elif departure_time > crazy_threshold :
print 'suspect departure time:', departure_time, time_string_from_seconds(departure_time)
#write_ushort(0xFFF0 - 1) # do not write UNREACHABLE in util.h because this may cause problems
write_2ushort(arrival_time >> 1, departure_time >> 1)
write_2ushort(0xFFF0 - 1, 0xFFF0 - 1)
else :
write_2ushort(arrival_time >> 1, departure_time >> 1)
stoffset += 1
all_trip_ids.extend(trip_ids)
tioffset += len(trip_ids)
Expand Down

0 comments on commit c04e233

Please sign in to comment.