From: bdemsky Date: Tue, 3 Aug 2010 09:50:03 +0000 (+0000) Subject: do subtraction X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=924443dd22ecf02203bf4e3676ae365189417fce;p=IRC.git do subtraction --- diff --git a/Robust/CoreProf/Trace.java b/Robust/CoreProf/Trace.java index a25c8f6c..3b69c1ce 100644 --- a/Robust/CoreProf/Trace.java +++ b/Robust/CoreProf/Trace.java @@ -155,7 +155,7 @@ public class Trace { Counter c=e.counter; c.totaltime+=elapsedtime; c.selftime+=elapsedtime; - if(depth-1>0) { + if(depth-1>=0) { Counter cn=stack[depth-1].counter; cn.selftime-=elapsedtime; } @@ -181,7 +181,7 @@ public class Trace { Counter c=e.counter; c.totaltime+=elapsedtime; c.selftime+=elapsedtime; - if(depth-1>0) { + if(depth-1>=0) { Counter cn=stack[depth-1].counter; cn.selftime-=elapsedtime; }