node-statsd icon indicating copy to clipboard operation
node-statsd copied to clipboard

Support incrementing or decrementing Counters by 0

Open todd opened this issue 8 years ago • 1 comments

We need to be able to support incrementing or decrementing a Counter by 0. The current code value || 1 where value = 0 will always evaluate to 1. This changes the behavior to support 0, but still default to 1 when value is undefined or null.

todd avatar Dec 13 '16 22:12 todd

Test failures are for very outdated versions of Node failing to install packages on Travis.

todd avatar Dec 13 '16 23:12 todd