diff --git a/server/TracyPrint.cpp b/server/TracyPrint.cpp index 41cc5a5b..1ac02d74 100644 --- a/server/TracyPrint.cpp +++ b/server/TracyPrint.cpp @@ -195,15 +195,9 @@ const char* TimeToString( int64_t _ns ) const auto h = int64_t( ns / ( 1000ll * 1000 * 1000 * 60 * 60 ) - d * 24 ); const auto m = int64_t( ns / ( 1000ll * 1000 * 1000 * 60 ) - d * ( 60 * 24 ) - h * 60 ); const auto s = int64_t( ns / ( 1000ll * 1000 * 1000 ) - d * ( 60 * 60 * 24 ) - h * ( 60 * 60 ) - m * 60 ); - if( d < 1000 ) - { - PrintSmallInt( buf, d ); - *buf++ = 'd'; - } - else - { - buf += sprintf( buf, "%" PRIi64 "d", d ); - } + assert( d < 100 ); + PrintTinyInt( buf, d ); + *buf++ = 'd'; PrintTinyInt0( buf, h ); *buf++ = ':'; PrintTinyInt0( buf, m );