thread.c: adjusted [ci skip]
* thread.c (timeval_add): adjusted indent and parenthesized in braces. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
db9523ef47
commit
cb26d0d9bb
9
thread.c
9
thread.c
@ -1145,13 +1145,14 @@ timeval_add(struct timeval *dst, const struct timeval *tv)
|
|||||||
else
|
else
|
||||||
dst->tv_sec += tv->tv_sec;
|
dst->tv_sec += tv->tv_sec;
|
||||||
if ((dst->tv_usec += tv->tv_usec) >= 1000000) {
|
if ((dst->tv_usec += tv->tv_usec) >= 1000000) {
|
||||||
if (dst->tv_sec == TIMEVAL_SEC_MAX)
|
if (dst->tv_sec == TIMEVAL_SEC_MAX) {
|
||||||
dst->tv_usec = 999999;
|
dst->tv_usec = 999999;
|
||||||
else {
|
}
|
||||||
|
else {
|
||||||
dst->tv_sec++;
|
dst->tv_sec++;
|
||||||
dst->tv_usec -= 1000000;
|
dst->tv_usec -= 1000000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
Loading…
x
Reference in New Issue
Block a user