From: Sebastien Bourdeauducq Date: Sat, 15 Jun 2013 14:50:27 +0000 (+0200) Subject: videomixer: better memory bandwidth reporting X-Git-Tag: 24jan2021_ls180~2895 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6d3af8a914ac1a093ed801862471bd7ea297c1d3;p=litex.git videomixer: better memory bandwidth reporting --- diff --git a/software/videomixer/main.c b/software/videomixer/main.c index 8d81531a..4407d64a 100644 --- a/software/videomixer/main.c +++ b/software/videomixer/main.c @@ -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); } }