From c85e6f6aa9665f9a9ffe090c9dcaacff747be4b0 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 14 Jan 2003 20:26:44 +0000 Subject: [PATCH] Oops, a bug in the profiler, causing time travels :) --- lib/profile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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++; } } } -- 2.39.2