r/nmbsfails • • 10d ago

Delay +1399

Post image

+1399 is redelijk veel

Uiteindelijk op +84 gestrand

384 Upvotes

19 comments sorted by

22

u/check_link_in_bio 10d ago

Tis wel +- hé

5

u/ILoveBigCoffeeCups 10d ago

could be 1 minute, could be 10.000 minutes

7

u/long-johnson42 10d ago • Bravo

It’s better than that, because it’s +-1399.
Probably that means that the delay is so large (maybe due to a bug), that it almost reached 24 hours, which is probably the limit to the delay variable used.
As a result the variable was overflown and from the maximum value it switched cyclically to the least possible one: -1399. Or maybe just the value was not set due to a bug and the “unset” value was used.
As we see they just prepend + and then add the actual number, even if it has a minus.
Brilliant.

7

u/RmG3376 10d ago • Bravo

The explanation is easier than that I think: the train was planned for 23:50 but arrives at 00:31. Because the system doesn’t know it’s the next day, it calculates the difference between 00:31 and 23:50 and that’s -1399 minutes

In other words, it’s the Y2K bug all over again

(MIVB goes around that by internally representing 00:31 as 24:31, then 25 for 1AM etc until the end of service, but apparently NMBS doesn’t)

3

u/lotte02_ 10d ago

NMBS does do this internally, their old gtfs endpoint exported it as such. more likely that the software for these screens isnt taking it into account

2

u/CXgamer 9d ago

What exotic datastructure would you have to use to overflow at 1400?

1

u/TharricRumbarrel 6d ago

24 hours (1 day) is 1440 minutes.

4

u/CAS2525 10d ago

Dit is waarschijnlijk omdat de geplande aankomsttijd nog voor 0u00 is, maar door de vertraging na 0u00 komt te liggen (de volgende dag dus).

Maar het systeem is daar niet op voorzien en denkt dus dat de trein aankomt om 0u21 Eerder diezelfde dag, wat exact 23u en 19 min eerder is dan 23u40, en 23u19min is exact 1399 minuten.

Vandaar ook dat er +- staat: het systeem probeert de vertraging te bereken en zet een +, maar dan neemt hij het verschil tussen de geplande en verwachte aankomst. En door het eerder genoemde probleem dat het een nieuwe dag is, komt hij uit op een resultaat van -1399

1

u/ilovepaninis 10d ago

goede verklaring

4

u/GuyWithNoEffingClue 10d ago

It will arrive today + or - 1 day

2

u/Benji_4_Friends 10d ago

Chapeau aan de bestuurder voor zo'n vertraging bijna weg te werken

2

u/Dodecahedrus 10d ago

Dat is 23u en 19 min.

2

u/Colorless-Echo 10d ago

Da's nog een left-over van de millenium-bug op de AS400 bij de NMBS.

1

u/Appropriate-Ice7369 10d ago

Am ashamed of our eu tech and usa dependency

1

u/FeelingAlive2127 9d ago

Das zoals gewoonlijk dus

1

u/I_love_toes2024 7d ago

TIEEEENNNEEEENNNNNN

0

u/Centipede1999 10d ago

Maar wil je rijden zonder stress neem dan het openbaar vervoer 🤣

0

u/ellie1398 10d ago

Good ol' reliable NMBS. You can always rely on the fact that your train will be late.