Skip to content

Commit

Permalink
Bump to 0.8.4
Browse files Browse the repository at this point in the history
This release fixes a problem with the prometheus sink's take on
summaries. In particular, we were destroying the wrong side of the
window, meaning all new values were (eventually) being dumped. This
bug caught thanks to @dparton.

  * 23688f6 :: Correct prometheus window summary truncation (#352)

Signed-off-by: Brian L. Troutwine <blt@postmates.com>
  • Loading branch information
Brian L. Troutwine committed Dec 4, 2017
1 parent 23688f6 commit d91c1fa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license = "MIT"
name = "cernan"
readme = "README.md"
repository = "https://github.com/postmates/cernan"
version = "0.8.4-pre"
version = "0.8.4"

[[bin]]
name = "cernan"
Expand Down
2 changes: 1 addition & 1 deletion src/sink/prometheus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ impl Accumulator {
samples.insert(idx, telem);
if samples.len() > cap {
let top_idx = samples.len() - cap;
samples.drain(0 .. top_idx);
samples.drain(0..top_idx);
}
}
}
Expand Down

0 comments on commit d91c1fa

Please sign in to comment.