X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/dec9e7b1eba77e8012e4ffc0c43acc5e28167d7c..ca0bac403f4c52300454fd26e46a5deb570cfda6:/widget/contrib/tp_smapi.lua?ds=inline diff --git a/widget/contrib/tp_smapi.lua b/widget/contrib/tp_smapi.lua index e6da918..7192990 100644 --- a/widget/contrib/tp_smapi.lua +++ b/widget/contrib/tp_smapi.lua @@ -35,7 +35,7 @@ local function factory(apipath) end function tp_smapi.percentage(batid) - return tp_smapi.get("remaining_percent") + return tp_smapi.get(batid, "remaining_percent") end -- either running or charging time