Skip to content

Commit

Permalink
changed currentTime to number as specified in the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
julekgwa authored and lance committed Sep 11, 2018
1 parent 846041a commit b41407d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hystrix-formatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function hystrixFormatter (stats) {
type: 'HystrixCommand',
name: stats.name,
group: stats.group,
currentTime: new Date(),
currentTime: Date.now(),
isCircuitBreakerOpen: !stats.closed,
errorPercentage:
stats.fires === 0 ? 0 : (stats.failures / stats.fires) * 100,
Expand Down

0 comments on commit b41407d

Please sign in to comment.