]> granicus.if.org Git - icinga2/commitdiff
Windows build fix for InfluxdbWriter 5335/head
authorMichael Friedrich <michael.friedrich@icinga.com>
Wed, 7 Jun 2017 12:16:15 +0000 (14:16 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Wed, 7 Jun 2017 12:16:15 +0000 (14:16 +0200)
refs #5219
fixes #5334

lib/perfdata/influxdbwriter.cpp

index 7e7137da8f6a5d92fe0d7c252c0262c2ed200805..c6fa2c2c3966525ae351658a8fde54a95013d094 100644 (file)
@@ -228,7 +228,7 @@ String InfluxdbWriter::FormatInteger(int val)
 
 String InfluxdbWriter::FormatBoolean(bool val)
 {
-       return String(val);
+       return val ? "true" : "false";
 }
 
 void InfluxdbWriter::SendPerfdata(const Dictionary::Ptr& tmpl, const Checkable::Ptr& checkable, const CheckResult::Ptr& cr, double ts)