skywalking-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pen...@apache.org
Subject [incubator-skywalking] branch master updated: fix no data (#1053)
Date Mon, 09 Apr 2018 07:50:47 GMT
This is an automated email from the ASF dual-hosted git repository.

pengys 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 1052f72  fix no data (#1053)
1052f72 is described below

commit 1052f7292f49d577eadfc505c8b7040d14e4b6a7
Author: lican <295198088@qq.com>
AuthorDate: Mon Apr 9 15:50:43 2018 +0800

    fix no data (#1053)
---
 .../provider/worker/segment/SegmentDurationSpanListener.java       | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/segment/SegmentDurationSpanListener.java
b/apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/segment/SegmentDurationSpanListener.java
index 34645dc..cbaf303 100644
--- a/apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/segment/SegmentDurationSpanListener.java
+++ b/apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/segment/SegmentDurationSpanListener.java
@@ -64,11 +64,8 @@ public class SegmentDurationSpanListener implements EntrySpanListener,
ExitSpanL
     @Override
     public void parseFirst(SpanDecorator spanDecorator, int applicationId, int instanceId,
         String segmentId) {
-        if (spanDecorator.getStartTimeMinuteTimeBucket() == 0) {
-            long startTimeMinuteTimeBucket = TimeBucketUtils.INSTANCE.getMinuteTimeBucket(spanDecorator.getStartTime());
-            spanDecorator.setStartTimeMinuteTimeBucket(startTimeMinuteTimeBucket);
-        }
-        timeBucket = spanDecorator.getStartTimeMinuteTimeBucket();
+
+        timeBucket = TimeBucketUtils.INSTANCE.getSecondTimeBucket(spanDecorator.getStartTime());
 
         SegmentDuration segmentDuration = new SegmentDuration();
         segmentDuration.setId(segmentId);

-- 
To stop receiving notification emails like this one, please contact
pengys@apache.org.

Mime
View raw message