[client] more polling improvements

This commit is contained in:
Geoffrey McRae
2017-12-07 04:51:54 +11:00
parent 32c6989654
commit 852309464f
2 changed files with 32 additions and 24 deletions

View File

@@ -489,8 +489,8 @@ enum IVSHMEMWaitResult ivshmem_wait_irq(uint16_t vector, unsigned int timeout)
FD_SET(fd, &fds);
struct timeval tv;
tv.tv_sec = timeout / 1000;
tv.tv_usec = (timeout - tv.tv_sec * 1000) * 1000;
tv.tv_sec = timeout / 1000000L;
tv.tv_usec = timeout % 1000000L;
while(true)
{