Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

lib/helpers: added support for null 'ms' metrics.

Pointed out by: jeffyip in #382 [1]

[1] etsy#382 (comment)
  • Loading branch information...
commit 972993ef59c34ab92883bc62271efbc90514dde3 1 parent 5acff30
Alexey Ivanov authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/helpers.js
View
2  lib/helpers.js
@@ -32,7 +32,7 @@ function is_valid_packet(fields) {
case 'g':
return isNumber(fields[0]);
case 'ms':
- return isNumber(fields[0]) && Number(fields[0]) > 0;
+ return isNumber(fields[0]) && Number(fields[0]) >= 0;
default:
if (!isNumber(fields[0])) {
return false;
Please sign in to comment.
Something went wrong with that request. Please try again.