changed swap check to percent values for warning and critical