mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-15 10:45:58 +01:00
fix integer division
This commit is contained in:
parent
fb4225996b
commit
97d739ef2a
1 changed files with 2 additions and 2 deletions
|
@ -132,7 +132,7 @@ int rollingRead(const int socket, int rate) {
|
|||
buffer.fill('\0');
|
||||
}
|
||||
|
||||
usleep((1 / rate) * 1000000);
|
||||
usleep(static_cast<int>((1.0 / rate) * 1000000));
|
||||
}
|
||||
close(socket);
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue