mhonek / 389-ds-base

Forked from 389-ds-base 6 years ago
Clone

4295210 Ticket 50510 - etime can contain invalid nanosecond value

Authored and Committed by tbordaz 4 years ago
    Ticket 50510 - etime can contain invalid nanosecond value
    
    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: Mark Reynolds (Thanks!)
    
    Platforms tested: F28
    
    Flag Day: no
    
    Doc impact: no
    
        
file modified
+4 -2