forked from enlightenment/efl
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:
parent
28923a44ba
commit
56a0bc26d9
|
@ -67,7 +67,7 @@ exe_data_count(void *data, int type, void *event)
|
||||||
if (data_count >= size)
|
if (data_count >= size)
|
||||||
{
|
{
|
||||||
now = ecore_time_get();
|
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)
|
if (data_count != size)
|
||||||
printf("Size discrepency of %d bytes.\n", size - data_count);
|
printf("Size discrepency of %d bytes.\n", size - data_count);
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
Loading…
Reference in New Issue