Skip to content

Commit

Permalink
Merge pull request #453 from tilogaat/fix-samplecount-bug-2
Browse files Browse the repository at this point in the history
Fixing sampleCount bug
  • Loading branch information
tilogaat committed Apr 16, 2015
2 parents 8d4d2b8 + 3f44fc7 commit 7072b54
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public static Collection<PreaggregatedMetric> convertCounters(String tenant, lon
Rollup rollup = new CounterRollup()
.withCount(resolveNumber(counter.getValue()))
.withRate(counter.getRate().doubleValue())
.withCount(sampleCount);
.withSampleCount((int)sampleCount);
PreaggregatedMetric metric = new PreaggregatedMetric(timestamp, locator, DEFAULT_TTL, rollup);
list.add(metric);
}
Expand Down

0 comments on commit 7072b54

Please sign in to comment.