From 13dd21f73096c205a7a616a153bcb751e2d3fdcf Mon Sep 17 00:00:00 2001 From: Jonathan Strong Date: Wed, 17 Oct 2018 23:39:31 -0400 Subject: [PATCH] change nan replacement value from 0.0 to -999.0 so it's obvious --- src/influx.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/influx.rs b/src/influx.rs index 5ab5d40..254ee8f 100644 --- a/src/influx.rs +++ b/src/influx.rs @@ -580,7 +580,7 @@ pub fn serialize_owned(measurement: &OwnedMeasurement, line: &mut String) { if f.is_finite() { line.push_str(&format!("{}", f)); } else { - line.push_str("0.0"); + line.push_str("-999.0"); } }