SZinedine / auzia-conky

A Conky theme with rings
GNU General Public License v3.0
32 stars 11 forks source link

Battery isn't reporting percent correctly! #1

Closed croxis closed 2 years ago

croxis commented 3 years ago

image I only have one battery

R0X0RE0 commented 2 years ago

Yeah I noticed it's going with half of what I have on my battery level. Kinda bothersome, to be honest. I tried looking through the Lua scripts for a battery percentage that seemed like it was being divided in half, but I didn't really see anything.

R0X0RE0 commented 2 years ago

Oh, I found it, in the abstract.lua file (lines 380-384)

battery_percent = function() 
                local b0 = tonumber(battery1_percent())
                local b1 = tonumber(battery2_percent())
                return math.floor((b0 + b1)/2)
            end

In return math.floor((b0 + b1)/2), remove the /2