Skip to content

Commit

Permalink
Merge branch 'fix-metric-get-from-cache'
Browse files Browse the repository at this point in the history
  • Loading branch information
starstuck committed Mar 17, 2016
2 parents f28fd89 + 5e7cd0d commit 6c0fc04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/metric_vnode/src/metric_vnode.erl
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ handle_command({get, ReqID, Bucket, Metric, {Time, Count}}, Sender,
->
PartStart = max(Time, Start),
PartCount = min(Time + Count, Start + Size) - PartStart,
SkipBytes = (PartStart - Start),
SkipBytes = (PartStart - Start) * ?DATA_SIZE,
Bin = k6_bytea:get(Array, SkipBytes, (PartCount * ?DATA_SIZE)),
Offset = PartStart - Time,
Part = {Offset, PartCount, Bin},
Expand Down

0 comments on commit 6c0fc04

Please sign in to comment.