Skip to content
Commit 155eb9aa authored by Avishay Traeger's avatar Avishay Traeger Committed by Kevin Wolf
Browse files

Fix integer overflow in block migration bandwidth calculation



block_mig_state.reads is an int, and multiplying by BLOCK_SIZE yielded a
negative number, resulting in a negative bandwidth (running on a 32-bit
machine).  Change order to avoid.

Signed-off-by: default avatarAvishay Traeger <avishay@il.ibm.com>
Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
parent 7d905f71
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment