Fix percentage logic

@mheffner @rjenkins