cpu: Fix the traffic gen read percentage
authorAndreas Hansson <andreas.hansson@arm.com>
Mon, 7 Jan 2013 18:05:35 +0000 (13:05 -0500)
committerAndreas Hansson <andreas.hansson@arm.com>
Mon, 7 Jan 2013 18:05:35 +0000 (13:05 -0500)
commitf22d3bb9c3a010bfe9681cf7b02e0fc39a694e49
tree83169008ad696a220983a6e64407be8f2ae5c267
parent852a7bcf923af424de8df1ddbeb462d52de8383b
cpu: Fix the traffic gen read percentage

This patch fixes the computation that determines whether to perform a
read or a write such that the two corner cases (0 and 100) are both
more efficient and handled correctly.
src/cpu/testers/traffic_gen/traffic_gen.cc