Fix floating point comparison.

This commit is contained in:
Kareem
2024-03-20 16:03:43 -07:00
parent 4d4f4e3f30
commit d867405ffb

View File

@ -513,7 +513,7 @@ int ServerEchoData(SSL* ssl, int clientfd, int echoData, int block,
#define SIZE_FMT "%zu"
#define SIZE_TYPE size_t
#endif
if (rx_time && tx_time) {
if (rx_time > 0.0 && tx_time > 0.0) {
printf(
"wolfSSL Server Benchmark " SIZE_FMT " bytes\n"
"\tRX %8.3f ms (%8.3f MBps)\n"