Comparing version 0.4.1 to 0.4.2
{ | ||
"name" : "riemann", | ||
"version" : "0.4.1", | ||
"version" : "0.4.2", | ||
"description" : "node.js client for Riemann, supports hybrid UDP/TCP connections.", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -48,3 +48,5 @@ var assert = require('assert'); | ||
if (!payload.time) { payload.time = new Date().getTime()/1000; } | ||
if (payload.metric) { payload.metricF = payload.metric; } | ||
if (typeof payload.metric !== "undefined" && payload.metric !== null) { | ||
payload.metricF = payload.metric; | ||
} | ||
return payload; | ||
@@ -51,0 +53,0 @@ } |
13721
237