]> mj.ucw.cz Git - libucw.git/blobdiff - lib/profile.c
Added a graph-like test case which tests custom presorter and THIS_FB mode.
[libucw.git] / lib / profile.c
index bd76af3e2934b99dde7a000d0210db0a3055d5ae..feed51f5567a728636ae51ac013e2b584df75c6a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *     Sherlock Library -- Poor Man's Profiler
+ *     UCW Library -- Poor Man's Profiler
  *
  *     (c) 2001 Martin Mares <mj@ucw.cz>
  *
@@ -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++;
        }
     }
 }