Skip to content

Commit

Permalink
fix formatting in net graph
Browse files Browse the repository at this point in the history
  • Loading branch information
mastercoms committed Aug 19, 2020
1 parent 20808a2 commit d84bc9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions game/client/vgui_netgraphpanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,7 @@ void CNetGraphPanel::DrawHatches( int x, int y, int maxmsgbytes )
void CNetGraphPanel::DrawUpdateRate( int xright, int y )
{
char sz[ 32 ];
Q_snprintf( sz, sizeof( sz ), "%.3f", cl_updateinterval->GetFloat() );
Q_snprintf( sz, sizeof( sz ), "%3.1f/s", 1.0f / cl_updateinterval->GetFloat() );
wchar_t unicode[ 32 ];
g_pVGuiLocalize->ConvertANSIToUnicode( sz, unicode, sizeof( unicode ) );

Expand All @@ -1071,7 +1071,7 @@ void CNetGraphPanel::DrawUpdateRate( int xright, int y )
void CNetGraphPanel::DrawCmdRate( int xright, int y )
{
char sz[ 32 ];
Q_snprintf( sz, sizeof( sz ), "%.3f/s", cl_cmdinterval->GetFloat() );
Q_snprintf( sz, sizeof( sz ), "%3.1f/s", cl_cmdinterval->GetFloat() );
wchar_t unicode[ 32 ];
g_pVGuiLocalize->ConvertANSIToUnicode( sz, unicode, sizeof( unicode ) );

Expand Down

0 comments on commit d84bc9d

Please sign in to comment.