Commit 97cf515a authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix timer computation for real

parent 1f26fa60
-- Changes from version 0.3.4 to version 0.3.5
* Fix announce timer (again)
* Fix raw UDP media type
-- Changes from version 0.3.3 to version 0.3.4 -- Changes from version 0.3.3 to version 0.3.4
* Fix announce timer * Fix announce timer
......
...@@ -240,7 +240,7 @@ int main(int argc, char *argv[]) ...@@ -240,7 +240,7 @@ int main(int argc, char *argv[])
} }
unsigned n = config.Programs.size(); unsigned n = config.Programs.size();
div_t d = div ((1000000000 / n) * config.GetDelay(), 1000000000); lldiv_t d = lldiv (1000000000LL * config.GetDelay() / n, 1000000000);
struct timespec delay; struct timespec delay;
delay.tv_sec = d.quot; delay.tv_sec = d.quot;
delay.tv_nsec = d.rem; delay.tv_nsec = d.rem;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment