From: Gunnar Beutner Date: Wed, 30 Sep 2015 14:43:32 +0000 (+0200) Subject: Fix formatting for floating-point values in ConfigWriter X-Git-Tag: v2.4.0~234 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=359fb3f82bbd64af3c0a0c8f537cedf8b659812e;p=icinga2 Fix formatting for floating-point values in ConfigWriter fixes #10256 --- diff --git a/lib/config/configwriter.cpp b/lib/config/configwriter.cpp index 26dfe822a..91af9a6c1 100644 --- a/lib/config/configwriter.cpp +++ b/lib/config/configwriter.cpp @@ -37,7 +37,7 @@ void ConfigWriter::EmitBoolean(std::ostream& fp, bool val) void ConfigWriter::EmitNumber(std::ostream& fp, double val) { - fp << val; + fp << std::fixed << val; } void ConfigWriter::EmitString(std::ostream& fp, const String& val)