From 6d3af8a914ac1a093ed801862471bd7ea297c1d3 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 15 Jun 2013 16:50:27 +0200 Subject: [PATCH] videomixer: better memory bandwidth reporting --- software/videomixer/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } } -- 2.30.2