fixed jungfau virtual server as well

This commit is contained in:
2019-11-06 11:05:02 +01:00
parent ba37a51858
commit c3180737ed
4 changed files with 27 additions and 13 deletions

View File

@ -1798,8 +1798,11 @@ void* start_timer(void* arg) {
int64_t time_ns = ((end.tv_sec - begin.tv_sec) * 1E9 +
(end.tv_nsec - begin.tv_nsec));
if (periodns > time_ns) {
usleep((periodns - time_ns)/ 1000);
// sleep for (period - exptime)
if (frameNr < numFrames) { // if there is a next frame
if (periodns > time_ns) {
usleep((periodns - time_ns)/ 1000);
}
}
}
}