Fix backup time calculation

This commit is contained in:
Gregory Nutt 2014-12-09 06:26:34 -06:00
parent 0643fb90f7
commit 266ae5d6eb

View File

@ -291,7 +291,7 @@ int traveler_main(int argc, char *argv[])
elapsed = trv_current_time() - frame_start;
if (elapsed < MIN_FRAME_TIME)
{
usleep(1000000 * (elapsed - MIN_FRAME_TIME));
usleep(1000000 * (MIN_FRAME_TIME - elapsed));
}
#endif