Make capture output better suited for 80-char-wide terminals.

This commit is contained in:
Bartosz Taudul 2021-12-30 16:21:25 +01:00
parent 776d8336e7
commit 5a2a58f68f
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -158,7 +158,7 @@ int main( int argc, char** argv )
{ {
printf( "\33[2K\r\033[36;1m%7.2f Mbps", mbps ); printf( "\33[2K\r\033[36;1m%7.2f Mbps", mbps );
} }
printf( " \033[0m /\033[36;1m%5.1f%% \033[0m=\033[33;1m%7.2f Mbps \033[0m| \033[33mNet: \033[32m%s \033[0m| \033[33mMem: \033[31;1m%s\033[0m | \033[33mTime: %s\033[0m", printf( " \033[0m /\033[36;1m%5.1f%% \033[0m=\033[33;1m%7.2f Mbps \033[0m| \033[33mTx: \033[32m%s \033[0m| \033[31;1m%s\033[0m | \033[33m%s\033[0m",
compRatio * 100.f, compRatio * 100.f,
mbps / compRatio, mbps / compRatio,
tracy::MemSizeToString( netTotal ), tracy::MemSizeToString( netTotal ),