do subtraction
authorbdemsky <bdemsky>
Tue, 3 Aug 2010 09:50:03 +0000 (09:50 +0000)
committerbdemsky <bdemsky>
Tue, 3 Aug 2010 09:50:03 +0000 (09:50 +0000)
Robust/CoreProf/Trace.java

index a25c8f6..3b69c1c 100644 (file)
@@ -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;
        }