Skip to content

Commit

Permalink
Use base units (seconds) for current time in gauge
Browse files Browse the repository at this point in the history
I think this is the only instance where this is incorrect.

Breaking change

Fixes siimon#167
  • Loading branch information
ThomWright committed Feb 28, 2018
1 parent b429d1d commit 2ecd77c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gauge.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ class Gauge {

function setToCurrentTime(labels) {
return () => {
const now = Date.now();
const now = Date.now() / 1000;
if (labels === undefined) {
this.set(now);
} else {
Expand Down

0 comments on commit 2ecd77c

Please sign in to comment.