not an issue but a request #506


Open
  • electrocio created this issue Jan 19, 2017

    I always modify my copy of skada to see numbers lower than 1k (like to see then in the 19 BG  bracket). below is how i add to the code. I just add another elseif stament . maybe someday this can be added to the release then I can be even more lazy not have to modify the code every time i update (or have to reinstall).

     

     -- Formats a number into human readable form.
    function Skada:FormatNumber(number)
    if number then
    if self.db.profile.numberformat == 1 then
    if number > 1000000000 then
    return ("%02.3fB"):format(number / 1000000000)
    elseif number > 1000000 then
    return ("%02.2fM"):format(number / 1000000)
    elseif number > 1000 then
    return ("%02.1fK"):format(number / 1000)
    else
    return ("%02.1f"):format(number)
    end
    else
    return math.floor(number)
    end
    end
    end


To post a comment, please login or register a new account.