Skip to content

Commit

Permalink
software/memtest: fix bandwidth computation
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien Bourdeauducq committed Jul 17, 2013
1 parent 7e3b84a commit 525c329
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions software/memtest/main.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ static void membw_service(void)
nr = lasmicon_bandwidth_nreads_read(); nr = lasmicon_bandwidth_nreads_read();
nw = lasmicon_bandwidth_nwrites_read(); nw = lasmicon_bandwidth_nwrites_read();
f = identifier_frequency_read(); f = identifier_frequency_read();
rdb = nr*f >> (24 - 7); rdb = (nr*f >> (24 - 7))/1000000ULL;
wrb = nw*f >> (24 - 7); wrb = (nw*f >> (24 - 7))/1000000ULL;
printf("read:%4dMbps write:%4dMbps all:%4dMbps\n", rdb/1000000, wrb/1000000, (rdb + wrb)/1000000); printf("read:%5dMbps write:%5dMbps all:%5dMbps\n", rdb, wrb, rdb + wrb);
} }
} }


Expand Down

0 comments on commit 525c329

Please sign in to comment.