videomixer: better memory bandwidth reporting

This commit is contained in:
Sebastien Bourdeauducq 2013-06-15 16:50:27 +02:00
parent 351ba863e0
commit 6d3af8a914
1 changed files with 3 additions and 3 deletions

View File

@ -102,9 +102,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 >> (24LL - 7ULL); rdb = nr*f >> (24 - 7);
wrb = nw*f >> (24LL - 7ULL); wrb = nw*f >> (24 - 7);
printf("read: %4dMbps write: %4dMbps\n", rdb/1000000, wrb/1000000); printf("read:%4dMbps write:%4dMbps all:%4dMbps\n", rdb/1000000, wrb/1000000, (rdb + wrb)/1000000);
} }
} }