don't busy-sleep when paused

This commit is contained in:
Aaron Culliney 2014-11-02 11:46:30 -10:00
parent 06a4bd3961
commit 2d6ca9ce89

View File

@ -1573,7 +1573,7 @@ static void *interface_thread(void *current_key)
case kPAUSE:
while (c_mygetch(1) == -1)
{
struct timespec ts = { .tv_sec=0, .tv_nsec=1 };
struct timespec ts = { .tv_sec=0, .tv_nsec=33333333/*30Hz*/ };
nanosleep(&ts, NULL);
}
break;