From: Martin Mares Date: Tue, 14 Jan 2003 20:26:44 +0000 (+0000) Subject: Oops, a bug in the profiler, causing time travels :) X-Git-Tag: holmes-import~1304 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=c85e6f6aa9665f9a9ffe090c9dcaacff747be4b0;p=libucw.git Oops, a bug in the profiler, causing time travels :) --- diff --git a/lib/profile.c b/lib/profile.c index bd76af3e..af84b3ea 100644 --- a/lib/profile.c +++ b/lib/profile.c @@ -39,12 +39,12 @@ prof_tod_switch(struct prof_tod *o, struct prof_tod *n) if (o->usec < 0) { o->usec += 1000000; - o->sec++; + o->sec--; } else while (o->usec >= 1000000) { o->usec -= 1000000; - o->sec--; + o->sec++; } } }