From 4edacab7c55d069dde005752dd1dff6d52244b12 Mon Sep 17 00:00:00 2001 From: hengyunabc Date: Wed, 26 Jun 2019 23:35:09 +0800 Subject: [PATCH] fix tt command cost less than 0. #746 --- .../core/command/monitor200/TimeTunnelAdviceListener.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/core/src/main/java/com/taobao/arthas/core/command/monitor200/TimeTunnelAdviceListener.java b/core/src/main/java/com/taobao/arthas/core/command/monitor200/TimeTunnelAdviceListener.java index f31349b85..778d831d7 100644 --- a/core/src/main/java/com/taobao/arthas/core/command/monitor200/TimeTunnelAdviceListener.java +++ b/core/src/main/java/com/taobao/arthas/core/command/monitor200/TimeTunnelAdviceListener.java @@ -57,9 +57,6 @@ public class TimeTunnelAdviceListener extends ReflectAdviceListenerAdapter { double cost = threadLocalWatch.costInMillis(); TimeFragment timeTunnel = new TimeFragment(advice, new Date(), cost); - // reset the timestamp - threadLocalWatch.clear(); - boolean match = false; try { match = isConditionMet(command.getConditionExpress(), advice, cost);