Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR - Ticket 50510 - etime can contain invalid nanosecond value #3569

Closed
389-ds-bot opened this issue Sep 13, 2020 · 4 comments
Closed

PR - Ticket 50510 - etime can contain invalid nanosecond value #3569

389-ds-bot opened this issue Sep 13, 2020 · 4 comments
Labels
merged Migration flag - PR pr Migration flag - PR

Comments

@389-ds-bot
Copy link

389-ds-bot commented Sep 13, 2020

Cloned from Pagure Pull-Request: https://pagure.io/389-ds-base/pull-request/50513

  • Created at 2019-07-23 14:25:12 by tbordaz (@tbordaz)
  • Merged at 2019-07-25 15:55:34

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

Resolves: #3566

Reviewed by: ?

Platforms tested: F28

Flag Day: no

Doc impact: no

@389-ds-bot 389-ds-bot added merged Migration flag - PR pr Migration flag - PR labels Sep 13, 2020
@389-ds-bot
Copy link
Author

Comment from mreynolds (@mreynolds389) at 2019-07-23 15:39:18

ACK

@389-ds-bot
Copy link
Author

Comment from tbordaz (@tbordaz) at 2019-07-25 15:54:45

rebased onto 4295210

@389-ds-bot
Copy link
Author

Comment from tbordaz (@tbordaz) at 2019-07-25 15:55:35

Pull-Request has been merged by tbordaz

@389-ds-bot
Copy link
Author

Patch
50513.patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged Migration flag - PR pr Migration flag - PR
Projects
None yet
Development

No branches or pull requests

1 participant