if percentmin then
        self.obj.text = (string.format("|cff%s%d%%|r", Crayon:GetThresholdHexColor(percentmin), percentmin * 100))
    end

최소 내구도 구문입니다. 이걸 저는 평균 내구도로 쓰려고

        if percent then
            self.obj.text = (string.format("|cff%s%d%%|r", Crayon:GetThresholdHexColor(percent), percent * 100))
        end

위와같이 변경했습니다. 그랬더니 overflow 에러가 뜨는데 어떻게 바꿔야 할까요?

아래와 같은 에러인데 혹시 계산식 아시는 분 있으면 답변 부탁드립니다.
감사합니다.

12x integer overflow attempting to store -nan(ind)
[string "=[C]"]: in function `format'
[string "@Broker_DurabilityInfo/Broker_DurabilityInfo.lua"]:411: in function `?'
[string "@Ace3/AceTimer-3.0-17/AceTimer-3.0.lua"]:55: in function <Ace3/AceTimer-3.0/AceTimer-3.0.lua:50>