]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#8054 fix etime calculation
authorHoward Chu <hyc@openldap.org>
Fri, 11 Sep 2020 22:47:15 +0000 (23:47 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Fri, 11 Sep 2020 23:01:16 +0000 (23:01 +0000)
Was overlooked in a0cc1d9655da112a4d19cddf821460a4dedeed1c

servers/slapd/result.c

index 3e00d6f61ef1daab3ef1e5946944ed4f79576f12..c0bafabecf888c0ca1589a78f41ccf3be5544adc 100644 (file)
@@ -43,7 +43,7 @@
        char timestr[64]; \
        (void) gettimeofday( &now, NULL ); \
        now.tv_sec -= op->o_time; \
-       now.tv_usec -= op->o_tincr; \
+       now.tv_usec -= op->o_tusec; \
        if ( now.tv_usec < 0 ) { \
                --now.tv_sec; now.tv_usec += 1000000; \
        } \