Fix quiescent period calculation.

Bug: 867761
Change-Id: Ic4b47da9bc157c9c29dcf4b4bdee2ef6e99c7d9b