fix getBytesPerSec: should return correct read rate
refactor variables
replace magical number with constant
calculate the bandwidth in fraction
Merge pull request #16 from rajubairishetti/ThrottleInput

fix getBytesPerSec: should return actual read rate to avoid idleness