Skip to content

Commit

Permalink
Fixed long times constant error (#386)
Browse files Browse the repository at this point in the history
  • Loading branch information
BananaHemic authored and rndi committed May 17, 2018
1 parent 6f99327 commit 39536c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion srtcore/common.cpp
Expand Up @@ -300,7 +300,7 @@ void CTimer::sleep()
int CTimer::condTimedWaitUS(pthread_cond_t* cond, pthread_mutex_t* mutex, uint64_t delay) {
timeval now;
gettimeofday(&now, 0);
uint64_t time_us = now.tv_sec * 1000000 + now.tv_usec + delay;
uint64_t time_us = now.tv_sec * 1000000ULL + now.tv_usec + delay;
timespec timeout;
timeout.tv_sec = time_us / 1000000;
timeout.tv_nsec = (time_us % 1000000) * 1000;
Expand Down

0 comments on commit 39536c4

Please sign in to comment.