Skip to content

Commit

Permalink
videomixer: better memory bandwidth reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien Bourdeauducq committed Jun 15, 2013
1 parent 351ba86 commit 6d3af8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions software/videomixer/main.c
Expand Up @@ -102,9 +102,9 @@ static void membw_service(void)
nr = lasmicon_bandwidth_nreads_read();
nw = lasmicon_bandwidth_nwrites_read();
f = identifier_frequency_read();
rdb = nr*f >> (24LL - 7ULL);
wrb = nw*f >> (24LL - 7ULL);
printf("read: %4dMbps write: %4dMbps\n", rdb/1000000, wrb/1000000);
rdb = nr*f >> (24 - 7);
wrb = nw*f >> (24 - 7);
printf("read:%4dMbps write:%4dMbps all:%4dMbps\n", rdb/1000000, wrb/1000000, (rdb + wrb)/1000000);
}
}

Expand Down

0 comments on commit 6d3af8a

Please sign in to comment.