From 0a18cac0269c34f287629853e31b2fefe36f429d Mon Sep 17 00:00:00 2001 From: khotyn Date: Wed, 18 Sep 2013 17:51:04 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=9B=B4=E6=8E=A5=20>=200=20=E5=B0=B1?= =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E4=BA=86=EF=BC=8C=E6=B2=A1=E6=9C=89=E5=BF=85?= =?UTF-8?q?=E8=A6=81=E7=94=A8=E4=B8=89=E5=85=83=E8=A1=A8=E8=BE=BE=E5=BC=8F?= =?UTF-8?q?=20a=20>=20b=20=3F=20true=20:=20false=20=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E7=AE=80=E5=8C=96=E4=B8=BA=20a=20>=20b?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/taobao/profile/Manager.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/taobao/profile/Manager.java b/src/main/java/com/taobao/profile/Manager.java index 83b8600..4e5e3f7 100644 --- a/src/main/java/com/taobao/profile/Manager.java +++ b/src/main/java/com/taobao/profile/Manager.java @@ -8,10 +8,6 @@ */ package com.taobao.profile; -import java.text.DateFormat; -import java.text.SimpleDateFormat; -import java.util.Date; - import com.taobao.profile.config.ProfConfig; import com.taobao.profile.config.ProfFilter; import com.taobao.profile.thread.DataDumpThread; @@ -19,6 +15,10 @@ import com.taobao.profile.thread.SamplerThread; import com.taobao.profile.thread.TimeControlThread; +import java.text.DateFormat; +import java.text.SimpleDateFormat; +import java.util.Date; + /** * 管理类,单例实现 * @@ -124,7 +124,7 @@ public void initialization() { // 判断启动时间是否大于采集结束时间 2012-05-25 DateFormat df = new SimpleDateFormat("HH:mm:ss"); String now = df.format(new Date()); - moreThanEndTime = (now.compareTo(profConfig.getEndProfTime()) > 0 ) ? true : false; + moreThanEndTime = (now.compareTo(profConfig.getEndProfTime()) > 0 ); isDebugMode = profConfig.isDebugMode(); PORT = profConfig.getPort(); From 31dcee9cc0c3264b2ce4a34b728bb2c32e0a71d6 Mon Sep 17 00:00:00 2001 From: Khotyn Huang Date: Wed, 18 Sep 2013 20:27:48 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=81=A2=E5=A4=8D=20import?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/taobao/profile/Manager.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/taobao/profile/Manager.java b/src/main/java/com/taobao/profile/Manager.java index 4e5e3f7..f14ccea 100644 --- a/src/main/java/com/taobao/profile/Manager.java +++ b/src/main/java/com/taobao/profile/Manager.java @@ -8,6 +8,10 @@ */ package com.taobao.profile; +import java.text.DateFormat; +import java.text.SimpleDateFormat; +import java.util.Date; + import com.taobao.profile.config.ProfConfig; import com.taobao.profile.config.ProfFilter; import com.taobao.profile.thread.DataDumpThread; @@ -15,10 +19,6 @@ import com.taobao.profile.thread.SamplerThread; import com.taobao.profile.thread.TimeControlThread; -import java.text.DateFormat; -import java.text.SimpleDateFormat; -import java.util.Date; - /** * 管理类,单例实现 *