From af16872693af7a2ba28c39a9703d2aa9422acd1e Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 10 Feb 2019 01:03:35 +0100 Subject: [PATCH] Don't display fractional part if it's 0. --- server/TracyView.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index e6a4292e..c708b533 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -110,8 +110,6 @@ static inline void PrintSmallIntFrac( char*& buf, uint64_t v ) if( fr >= 995 ) { PrintSmallInt( buf, in+1 ); - memcpy( buf, ".00", 3 ); - buf += 3; } else { @@ -120,11 +118,6 @@ static inline void PrintSmallIntFrac( char*& buf, uint64_t v ) { PrintFrac00( buf, fr ); } - else - { - memcpy( buf, ".00", 3 ); - buf += 3; - } } } @@ -135,8 +128,6 @@ static inline void PrintSecondsFrac( char*& buf, uint64_t v ) if( fr >= 950 ) { PrintTinyInt0( buf, in+1 ); - memcpy( buf, ".0", 2 ); - buf += 2; } else { @@ -145,11 +136,6 @@ static inline void PrintSecondsFrac( char*& buf, uint64_t v ) { PrintFrac0( buf, fr ); } - else - { - memcpy( buf, ".0", 2 ); - buf += 2; - } } }