fix retiring calculation to be one less than the number of slots
fix retiring calculation to be one less than the number of slots

hep-gc/cloudscheduler,hep-gc/cloudscheduler,hep-gc/cloudscheduler,hep-gc/cloudscheduler