Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

videomixer: better memory bandwidth reporting

  • Loading branch information...
commit 6d3af8a914ac1a093ed801862471bd7ea297c1d3 1 parent 351ba86
@sbourdeauducq sbourdeauducq authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 software/videomixer/main.c
View
6 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);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.