diff --git a/web/src/main/java/com/navercorp/pinpoint/web/service/AgentInfoServiceImpl.java b/web/src/main/java/com/navercorp/pinpoint/web/service/AgentInfoServiceImpl.java index 582deca402f2..d4ef70f1040e 100644 --- a/web/src/main/java/com/navercorp/pinpoint/web/service/AgentInfoServiceImpl.java +++ b/web/src/main/java/com/navercorp/pinpoint/web/service/AgentInfoServiceImpl.java @@ -134,8 +134,7 @@ public ApplicationAgentList getApplicationAgentList(ApplicationAgentList.Key app @Override public Set getAgentsByApplicationName(String applicationName, long timestamp) { - long timeDiff = timestamp; - return this.getAgentsByApplicationName(applicationName, timestamp, timeDiff); + return this.getAgentsByApplicationName(applicationName, timestamp, timestamp); } @Override @@ -143,9 +142,6 @@ public Set getAgentsByApplicationName(String applicationName, long ti if (applicationName == null) { throw new NullPointerException("applicationName must not be null"); } - if (timeDiff < 0) { - throw new IllegalArgumentException("timeDiff must not be less than 0"); - } if (timeDiff > timestamp) { throw new IllegalArgumentException("timeDiff must not be greater than timestamp"); }