From 8d583719a9c0d3a6a2655c044c3bf660e652e4cd Mon Sep 17 00:00:00 2001 From: "calvin.xiao" Date: Mon, 12 Nov 2018 16:08:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=91=8A=E8=AD=A6=E8=A7=84?= =?UTF-8?q?=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vjtop/src/main/java/com/vip/vjtools/vjtop/WarningRule.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/vjtop/src/main/java/com/vip/vjtools/vjtop/WarningRule.java b/vjtop/src/main/java/com/vip/vjtools/vjtop/WarningRule.java index 2840b9a1..185100ee 100644 --- a/vjtop/src/main/java/com/vip/vjtools/vjtop/WarningRule.java +++ b/vjtop/src/main/java/com/vip/vjtools/vjtop/WarningRule.java @@ -3,15 +3,14 @@ import com.vip.vjtools.vjtop.util.Formats; public class WarningRule { - public DoubleWarning cpu = new DoubleWarning(50d, 70d); public LongWarning swap = new LongWarning(1, 1); public LongWarning thread = new LongWarning(); - public LongWarning newThread = new LongWarning(); + public LongWarning newThread = new LongWarning(1, Long.MAX_VALUE); public LongWarning io = new LongWarning(100 * Formats.MB_SIZE, Long.MAX_VALUE); - public LongWarning loadClass = new LongWarning(80000, 150000); + public LongWarning loadClass = new LongWarning(80000, Long.MAX_VALUE); public LongWarning newClass = new LongWarning(1, Long.MAX_VALUE); public LongWarning old = new LongWarning(); @@ -31,8 +30,6 @@ public void updateProcessor(int processors) { } public void updateInterval(long intervalSeconds) { - newThread.yellow = 1; - newThread.red = intervalSeconds * 2; ygcTime.yellow = intervalSeconds * 1000 * 5 / 100; // 5% interval ygcTime.red = intervalSeconds * 1000 * 10 / 100; // 10% interval