Process consumed capacity properly

Hello @nicks, 

Please review the following commits I made in branch 'xiao-fix-capacity'.

fed3c1611779a23417df87aacf4ccebedca71fa9 (2014-01-30 13:34:56 -0800)
Process consumed capacity properly

R=@nicks