Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

Commit

Permalink
fix monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatsNoMoon committed Aug 24, 2020
1 parent e65311d commit 8c1140b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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
@@ -1,6 +1,6 @@
[package]
name = "highlights"
version = "1.0.0-beta.2"
version = "1.0.0-beta.3"
authors = ["Benjamin Scherer <ThatsNoMoon.Alderaan@gmail.com>"]
repository = "https://github.com/ThatsNoMoon/highlights"
license = "OSL-3.0"
Expand Down
4 changes: 2 additions & 2 deletions src/monitoring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ impl Drop for Timer {
TimerType::Command => {
COMMAND_TIME_GAUGE
.with_label_values(&[self.name])
.add(elapsed);
.set(elapsed);
}
TimerType::Query => {
QUERY_TIME_GAUGE
.with_label_values(&[self.name])
.add(elapsed);
.set(elapsed);
}
}
}
Expand Down

0 comments on commit 8c1140b

Please sign in to comment.