Skip to content

Commit

Permalink
指标初始化时收集设置为0,确保首次获取指标的正确性 (alibaba#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
dumbdonkey authored Mar 3, 2021
1 parent b6c4f9b commit c750553
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public CachedMetricSet(long dataTTL, TimeUnit unit) {
public CachedMetricSet(long dataTTL, TimeUnit unit, Clock clock) {
this.dataTTL = unit.toMillis(dataTTL);
this.clock = clock;
this.lastCollectTime = new AtomicLong(clock.getTime());
this.lastCollectTime = new AtomicLong(0);
}

/**
Expand Down

0 comments on commit c750553

Please sign in to comment.