X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fprofile.c;h=feed51f5567a728636ae51ac013e2b584df75c6a;hb=e34560a76a7af3fb428604e4da3cd14cfd1bf454;hp=bd76af3e2934b99dde7a000d0210db0a3055d5ae;hpb=49ed04e2e93a6a5b01058638224621d5c07db01c;p=libucw.git diff --git a/lib/profile.c b/lib/profile.c index bd76af3e..feed51f5 100644 --- a/lib/profile.c +++ b/lib/profile.c @@ -1,5 +1,5 @@ /* - * Sherlock Library -- Poor Man's Profiler + * UCW Library -- Poor Man's Profiler * * (c) 2001 Martin Mares * @@ -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++; } } }