Paul Buerger <[email protected]> writes: > diff --git a/ltrace-d57c9f8/handle_event.c b/ltrace_fix/handle_event.c > index 1720cb3..384e868 100644 > --- a/ltrace-d57c9f8/handle_event.c > +++ b/ltrace_fix/handle_event.c > @@ -522,7 +522,7 @@ calc_time_spent(Process *proc) { > if (tv.tv_usec >= elem->time_spent.tv_usec) { > diff.tv_usec = tv.tv_usec - elem->time_spent.tv_usec; > } else { > - diff.tv_sec++; > + diff.tv_sec--; > diff.tv_usec = 1000000 + tv.tv_usec - > elem->time_spent.tv_usec; > } > current_time_spent = diff;
Thanks. Could you please make this into "git format-patch" and send that? The commit message should mention what bug this is fixing. Frankly, I don't know either, what bug does this address? Do we have a test case that triggers this? Thank you, PM _______________________________________________ Ltrace-devel mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/ltrace-devel
