bliksemlabs / rrrr

RRRR rapid real-time routing
BSD 2-Clause "Simplified" License
167 stars 32 forks source link

QA tests cannot do realtime #115

Open skinkie opened 10 years ago

skinkie commented 10 years ago
calendar_t realtime_mask = 1 << ((time(NULL) - router->tdata->calendar_start_time) / SEC_IN_ONE_DAY);

...because we apply the realtime_mask with respect to today. Which is not the case for any artificial created feed.

skinkie commented 10 years ago

The workaround is to set realtime_mask = 1; but obviously requires recompilation.