videomixer: better memory bandwidth reporting
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Sat, 15 Jun 2013 14:50:27 +0000 (16:50 +0200)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Sat, 15 Jun 2013 14:50:27 +0000 (16:50 +0200)
software/videomixer/main.c

index 8d81531a5b27dbf35c2745a5c58d86cf4c167e2c..4407d64aafe2f51e2f2000c1c473012dab334686 100644 (file)
@@ -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);
        }
 }