From 7fe68e0d28ed3966db003edb6b5e8f8ec8d4a80a Mon Sep 17 00:00:00 2001 From: Alex Smith Date: Sun, 29 Mar 2009 16:50:04 -0400 Subject: [PATCH] Partial correct of profiling output; it still goes haywire sometimes, though --- src/yuk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/yuk.c b/src/yuk.c index dc2beda..1a50f82 100644 --- a/src/yuk.c +++ b/src/yuk.c @@ -144,7 +144,7 @@ static yptimer yukclock_gettime() #endif /*@=unrecog@*/ temp=(yptimer)ts.tv_nsec + - (yptimer)ts.tv_sec * (yptimer)1000000LU; + (yptimer)ts.tv_sec * (yptimer)1000000000LU; /* using wraparound as with gettimeofday */ return temp; } @@ -205,7 +205,7 @@ void yukline(int aboff,int emitlineno) if(yukopts & 1) { /* profile */ temptick=YPGETTIME; - if(lastaboff) ypexectime[lastaboff]+=temptick-tickcount; + if(lastaboff) ypexectime[lastaboff]+=(yptimer)(temptick-tickcount); tickcount=temptick; if(ick_abstained[aboff]) ypabscount[aboff]++; else ypexecount[aboff]++; -- 2.43.0