mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
fixing first bug discovered by unit tests!!!
This commit is contained in:
parent
c3f2c96606
commit
9e851f7102
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ struct timespec time_add(struct timespec *start, struct timespec *end)
|
|||
.tv_nsec = end->tv_nsec + start->tv_nsec
|
||||
};
|
||||
|
||||
if (sum.tv_nsec > 1000000000) {
|
||||
if (sum.tv_nsec >= 1000000000) {
|
||||
sum.tv_sec += 1;
|
||||
sum.tv_nsec -= 1000000000;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue