#50513 Ticket 50510 - etime can contain invalid nanosecond value
Closed by spichugi. Opened by tbordaz.
tbordaz/389-ds-base ticket_50510  into  master

Download 50513.patch

Bug Description:
When computing the etime, it takes into account the nanosecond.
At border of a second, the ending nsec can be lower than starting nsec.
In such case the computation is wrong as delta=(ending_nsec - starting_nsec) is negative.
final_nsec = 1 - delta > 1sec

Fix Description:
if delta=(ending_nsec - starting_nsec) is negative
final_nsec = 1 + delta < 1sec

https://pagure.io/389-ds-base/issue/50510

Reviewed by: ?

Platforms tested: F28

Flag Day: no

Doc impact: no

rebased onto 4295210b2ce5fd8374dc66354965b8fc243ed649

Pull-Request has been merged by tbordaz

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This pull request has been cloned to Github as issue and is available here:
- https://github.com/389ds/389-ds-base/issues/3569

If you want to continue to work on the PR, please navigate to the github issue,
download the patch from the attachments and file a new pull request.

Thank you for understanding. We apologize for all inconvenience.

Pull-Request has been closed by spichugi

Metadata