Skip to content

Commit

Permalink
Update ServiceNameService.java (#1515)
Browse files Browse the repository at this point in the history
resolve the Integer overflow,convert the value to Long type
  • Loading branch information
terranhu authored and wu-sheng committed Aug 3, 2018
1 parent c10fc67 commit 20cee98
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public List<ServiceInfo> searchService(String keyword, int applicationId, int to

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,
Expand Down

0 comments on commit 20cee98

Please sign in to comment.