Doh! Should double the reported throughput, since it measures the bytes in

both directions.  The reported speed in the last commit message I doubled
manually, so it is correct.

NOTE - write speed is hard to time, as it happens asynchronously.


SVN revision: 19473
This commit is contained in:
David Walter Seikel 2006-01-01 17:25:17 +00:00
parent 28923a44ba
commit 56a0bc26d9
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ exe_data_count(void *data, int type, void *event)
if (data_count >= size)
{
now = ecore_time_get();
printf("\n\nApproximate data rate - %f bytes/second (%d lines and %d bytes in %f seconds).\n", ((double) data_count) / (now - then), line_count, data_count, now - then);
printf("\n\nApproximate data rate - %f bytes/second (%d lines and %d bytes (x2) in %f seconds).\n", ((double) data_count * 2.0) / (now - then), line_count, data_count, now - then);
if (data_count != size)
printf("Size discrepency of %d bytes.\n", size - data_count);
printf("\n");