The Samba-Bugzilla – Attachment 4752 Details for
Bug 6764
Adding a timed event makes a mistake in calculating usec.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch from Simo.
0001-Fixing-timeval-calculation.patch (text/plain), 806 bytes, created by
Jeremy Allison
on 2009-09-25 20:29:42 UTC
(
hide
)
Description:
Patch from Simo.
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2009-09-25 20:29:42 UTC
Size:
806 bytes
patch
obsolete
>From 76d836570e22c8916a00c723d86eb3be3d706223 Mon Sep 17 00:00:00 2001 >From: Simo Sorce <ssorce@redhat.com> >Date: Fri, 25 Sep 2009 10:59:04 -0400 >Subject: [PATCH] Fixing timeval calculation > >The code was always doubling microseconds when attempting to round up. >--- > lib/tevent/tevent_timed.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/lib/tevent/tevent_timed.c b/lib/tevent/tevent_timed.c >index d75653d..cc51bf6 100644 >--- a/lib/tevent/tevent_timed.c >+++ b/lib/tevent/tevent_timed.c >@@ -114,7 +114,7 @@ struct timeval tevent_timeval_add(const struct timeval *tv, uint32_t secs, > tv2.tv_sec += secs; > tv2.tv_usec += usecs; > tv2.tv_sec += tv2.tv_usec / 1000000; >- tv2.tv_usec += tv2.tv_usec % 1000000; >+ tv2.tv_usec = tv2.tv_usec % 1000000; > > return tv2; > } >-- >1.5.4.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
vl
:
review+
Actions:
View
Attachments on
bug 6764
: 4752