Permalink
Browse files

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

Pointed out by: jeffyip in #382 [1]

[1] etsy#382 (comment)
  • Loading branch information...
1 parent fdd8e68 commit 0b5e9b3d8436ca7f9c190efcb3bf80e175690658 Alexey Ivanov committed Feb 23, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/helpers.js
View
@@ -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;

0 comments on commit 0b5e9b3

Please sign in to comment.