Skip to content

Commit

Permalink
fix: incorrect heatmap resolution (#15)
Browse files Browse the repository at this point in the history
Correct the heatmap resolution, should be `from_millis` instead of
`from_secs`.

Fixes #13
  • Loading branch information
brayniac authored May 9, 2023
1 parent 8634df2 commit 1e9bcaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ macro_rules! heatmap {
crate = metriken
)]
pub static $ident: Lazy<metriken::Heatmap> = metriken::Lazy::new(|| {
metriken::Heatmap::new(0, 8, 64, Duration::from_secs(1), Duration::from_secs(100)).unwrap()
metriken::Heatmap::new(0, 8, 64, Duration::from_secs(1), Duration::from_millis(100)).unwrap()
});
};
($ident:ident, $name:tt, $description:tt) => {
Expand All @@ -125,7 +125,7 @@ macro_rules! heatmap {
crate = metriken
)]
pub static $ident: Lazy<metriken::Heatmap> = metriken::Lazy::new(|| {
metriken::Heatmap::new(0, 8, 64, Duration::from_secs(1), Duration::from_secs(100)).unwrap()
metriken::Heatmap::new(0, 8, 64, Duration::from_secs(1), Duration::from_millis(100)).unwrap()
});
};
}
Expand Down

0 comments on commit 1e9bcaa

Please sign in to comment.