fix integer division

This commit is contained in:
Richard Bainesly 2024-06-20 23:01:11 -04:00
parent fb4225996b
commit 97d739ef2a

View file

@ -132,7 +132,7 @@ int rollingRead(const int socket, int rate) {
buffer.fill('\0'); buffer.fill('\0');
} }
usleep((1 / rate) * 1000000); usleep(static_cast<int>((1.0 / rate) * 1000000));
} }
close(socket); close(socket);
return 0; return 0;