mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-18 19:46:14 +02:00
server tick
git-svn-id: svn://elaine/murooma/trunk@108 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
29d7fd372f
commit
d684686b47
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ int main () {
|
||||||
|
|
||||||
nextTick += WIRE_CHUNK_MS;
|
nextTick += WIRE_CHUNK_MS;
|
||||||
long currentTick = getTickCount();
|
long currentTick = getTickCount();
|
||||||
if (nextTick - currentTick > 0)
|
if (nextTick > currentTick)
|
||||||
{
|
{
|
||||||
usleep((nextTick - currentTick) * 1000);
|
usleep((nextTick - currentTick) * 1000);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue