mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
@@ -221,7 +221,7 @@ public abstract class ReflectAdviceListenerAdapter implements AdviceListener {
|
||||
}
|
||||
|
||||
/**
|
||||
* 超过次数上限,则不在输出,命令终止
|
||||
* 超过次数上限,则不再输出,命令终止
|
||||
* @param process the process to be aborted
|
||||
* @param limit the limit to be printed
|
||||
*/
|
||||
|
||||
+1
-1
@@ -162,7 +162,7 @@ class MonitorAdviceListener extends ReflectAdviceListenerAdapter {
|
||||
if (monitorData.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
// 超过次数上限,则不在输出,命令终止
|
||||
// 超过次数上限,则不再输出,命令终止
|
||||
if (process.times().getAndIncrement() >= limit) {
|
||||
this.cancel();
|
||||
abortProcess(process, limit);
|
||||
|
||||
Reference in New Issue
Block a user