Skip to content

Commit

Permalink
socket-test.
Browse files Browse the repository at this point in the history
  • Loading branch information
b4rtaz committed Oct 13, 2024
1 parent 6b4b3ca commit cc39725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/socket-test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void server() {
totalTime += duration_cast<microseconds>(t2 - t0).count();
}

double nPingPongs = 1000000.0 / (totalTime / (double)nAttempts);
double nPingPongs = (1.0 / (totalTime / 1000000.0)) * (double)nAttempts;
printf("[%6d bytes] write: %5lld us, read: %5lld us, total: %5lld us, nPingPongs: %.2f\n",
currentPackageSize, totalWriteTime, totalReadTime, totalTime, nPingPongs);
}
Expand Down

0 comments on commit cc39725

Please sign in to comment.