You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@skywalking.apache.org by wu...@apache.org on 2018/08/03 01:56:04 UTC

[incubator-skywalking] branch master updated: Update ServiceNameService.java (#1515)

This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-skywalking.git


The following commit(s) were added to refs/heads/master by this push:
     new 20cee98  Update ServiceNameService.java (#1515)
20cee98 is described below

commit 20cee98fc2b6af5f715bd082a14b082be276c506
Author: terranhu <27...@qq.com>
AuthorDate: Fri Aug 3 09:56:00 2018 +0800

    Update ServiceNameService.java (#1515)
    
    resolve the Integer overflow,convert the value to Long type
---
 .../apache/skywalking/apm/collector/ui/service/ServiceNameService.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apm-collector/apm-collector-ui/collector-ui-jetty-provider/src/main/java/org/apache/skywalking/apm/collector/ui/service/ServiceNameService.java b/apm-collector/apm-collector-ui/collector-ui-jetty-provider/src/main/java/org/apache/skywalking/apm/collector/ui/service/ServiceNameService.java
index fe9aaba..28830fa 100644
--- a/apm-collector/apm-collector-ui/collector-ui-jetty-provider/src/main/java/org/apache/skywalking/apm/collector/ui/service/ServiceNameService.java
+++ b/apm-collector/apm-collector-ui/collector-ui-jetty-provider/src/main/java/org/apache/skywalking/apm/collector/ui/service/ServiceNameService.java
@@ -77,7 +77,7 @@ public class ServiceNameService {
 
     private long startTimeMillis() {
         int minuteMetricDataTTL = configService.minuteMetricDataTTL();
-        return System.currentTimeMillis() - minuteMetricDataTTL * 60 * 1000;
+        return System.currentTimeMillis() - minuteMetricDataTTL * 60 * 1000L;
     }
 
     public ThroughputTrend getServiceThroughputTrend(int serviceId, Step step, long startTimeBucket,