From 7ce61309b49a5654062a9c9fba6ba51521ffcce5 Mon Sep 17 00:00:00 2001 From: Ildar Hizbulin Date: Fri, 18 Jul 2014 09:54:47 +0400 Subject: [PATCH] GraphiteWriter: Fix malformatted integer values fixes #6756 Signed-off-by: Michael Friedrich --- components/perfdata/graphitewriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/perfdata/graphitewriter.cpp b/components/perfdata/graphitewriter.cpp index 6a4763e61..ec8190d8e 100644 --- a/components/perfdata/graphitewriter.cpp +++ b/components/perfdata/graphitewriter.cpp @@ -166,7 +166,7 @@ void GraphiteWriter::SendPerfdata(const String& prefix, const CheckResult::Ptr& void GraphiteWriter::SendMetric(const String& prefix, const String& name, double value) { std::ostringstream msgbuf; - msgbuf << prefix << "." << name << " " << value << " " << static_cast(Utility::GetTime()) << "\n"; + msgbuf << prefix << "." << name << " " << Convert::ToString(value) << " " << static_cast(Utility::GetTime()) << "\n"; String metric = msgbuf.str(); Log(LogDebug, "GraphiteWriter", "GraphiteWriter: Add to metric list:'" + metric + "'.");