File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ void add_timespec(struct timespec *ts, int64 addtime)
250
250
sec = (addtime - nsec ) / NSEC_PER_SEC ;
251
251
ts -> tv_sec += sec ;
252
252
ts -> tv_nsec += nsec ;
253
- if ( ts -> tv_nsec > NSEC_PER_SEC )
253
+ if ( ts -> tv_nsec >= NSEC_PER_SEC )
254
254
{
255
255
nsec = ts -> tv_nsec % NSEC_PER_SEC ;
256
256
ts -> tv_sec += (ts -> tv_nsec - nsec ) / NSEC_PER_SEC ;
Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ void add_timespec(struct timespec *ts, int64 addtime)
250
250
sec = (addtime - nsec ) / NSEC_PER_SEC ;
251
251
ts -> tv_sec += sec ;
252
252
ts -> tv_nsec += nsec ;
253
- if ( ts -> tv_nsec > NSEC_PER_SEC )
253
+ if ( ts -> tv_nsec >= NSEC_PER_SEC )
254
254
{
255
255
nsec = ts -> tv_nsec % NSEC_PER_SEC ;
256
256
ts -> tv_sec += (ts -> tv_nsec - nsec ) / NSEC_PER_SEC ;
You can’t perform that action at this time.
0 commit comments