]> mj.ucw.cz Git - libucw.git/commitdiff
Oops, a bug in the profiler, causing time travels :)
authorMartin Mares <mj@ucw.cz>
Tue, 14 Jan 2003 20:26:44 +0000 (20:26 +0000)
committerMartin Mares <mj@ucw.cz>
Tue, 14 Jan 2003 20:26:44 +0000 (20:26 +0000)
lib/profile.c

index bd76af3e2934b99dde7a000d0210db0a3055d5ae..af84b3ea303f94647fd62a66e31cb8fa97227d47 100644 (file)
@@ -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++;
        }
     }
 }