Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

videomixer: better memory bandwidth reporting

  • Loading branch information...
commit 6d3af8a914ac1a093ed801862471bd7ea297c1d3 1 parent 351ba86
Sébastien Bourdeauducq authored

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  software/videomixer/main.c
6  software/videomixer/main.c
@@ -102,9 +102,9 @@ static void membw_service(void)
102 102
 		nr = lasmicon_bandwidth_nreads_read();
103 103
 		nw = lasmicon_bandwidth_nwrites_read();
104 104
 		f = identifier_frequency_read();
105  
-		rdb = nr*f >> (24LL - 7ULL);
106  
-		wrb = nw*f >> (24LL - 7ULL);
107  
-		printf("read: %4dMbps write: %4dMbps\n", rdb/1000000, wrb/1000000);
  105
+		rdb = nr*f >> (24 - 7);
  106
+		wrb = nw*f >> (24 - 7);
  107
+		printf("read:%4dMbps  write:%4dMbps  all:%4dMbps\n", rdb/1000000, wrb/1000000, (rdb + wrb)/1000000);
108 108
 	}
109 109
 }
110 110
 

0 notes on commit 6d3af8a

Please sign in to comment.
Something went wrong with that request. Please try again.