mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Don't display fractional part if it's 0.
This commit is contained in:
parent
e4f4fee6d4
commit
af16872693
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user