Changeset e23b87b in mainline


Ignore:
Timestamp:
2017-12-22T14:10:50Z (7 years ago)
Author:
Petr Mánek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
acb9aa7
Parents:
00d23a2
Message:

tmon: fix units in test results

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tmon/burst_tests.c

    r00d23a2 re23b87b  
    117117        printf(INDENT "Duration per cycle: %0.3f ms\n", dur_per_cycle);
    118118
    119         const double speed = (double) params->size / (double) duration;
    120         printf(INDENT "Transfer speed: %0.3f B/s\n", speed);
     119        const size_t total_size = params->size * params->cycles;
     120        printf(INDENT "Total size: %ld B\n", total_size);
     121
     122        const double speed = 1000.0 * (double) total_size / (double) duration;
     123        printf(INDENT "Average speed: %0.3f B/s\n", speed);
    121124}
    122125
Note: See TracChangeset for help on using the changeset viewer.