From 89ab6f12cbee02c71d656d8ac013fe746c030b0e Mon Sep 17 00:00:00 2001 From: David Steele Date: Thu, 12 May 2016 14:50:02 +0100 Subject: [PATCH] Ensured correct display of performance marker times Float granularity is too low for performance markers - too many markers were showing the same time. Upgraded it to a double - this allows the multiplication to generate the right markers in the network client Change-Id: I73a4eece36878c6d0cc5c5d320585dea28481ba9 Signed-off-by: David Steele --- .../performance-logging/networking/network-performance-client.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/adaptors/base/performance-logging/networking/network-performance-client.cpp b/adaptors/base/performance-logging/networking/network-performance-client.cpp index 7c90848..5d2de3a 100644 --- a/adaptors/base/performance-logging/networking/network-performance-client.cpp +++ b/adaptors/base/performance-logging/networking/network-performance-client.cpp @@ -170,13 +170,14 @@ bool NetworkPerformanceClient::TransmitMarker( const PerformanceMarker& marker, // write out the time stamp char buffer[64]; int size = snprintf( buffer, sizeof(buffer),"%.6f (seconds), %s\n", - (float)( marker.GetTimeStamp().microseconds * MICROSECONDS_TO_SECOND ), - description ); + ( (double) marker.GetTimeStamp().microseconds * MICROSECONDS_TO_SECOND ), + description ); return mSocket->Write( buffer, size ); } + // todo serialize the data return false; } -- 2.7.4