def _getStatusByValue(self, check_value):
        '''
        get status according to check value and spec
        '''
        self.logger.debug(self.check_cfg.check_value_is_number % "check_value_is_number=%s")
        try:
            assert(self.check_cfg.check_value_is_number == 'Y')
        except Exception as ex:
            self.logger.exception("%s" % ex)
            raise ex
        result = const.CHECK_STATUS_NORMAL

        if self.check_cfg.smaller_is_better:
            if check_value >= self.check_cfg.critical_limit:
                result = const.CHECK_STATUS_CRITICAL
            elif check_value >= self.check_cfg.warning_limit:
                result = const.CHECK_STATUS_WARN
        else:
            if check_value <= self.check_cfg.critical_limit:
                result = const.CHECK_STATUS_CRITICAL
            elif check_value <= self.check_cfg.warning_limit:
                result = const.CHECK_STATUS_WARN

        return result
dataset/ETHPy150Open harryliu/edwin/edwinServer/common/job_state_updater.py/JobStateUpdater._getStatusByValue/swapped operands of `%`