From: BarbUk Date: Sat, 1 Dec 2018 12:06:12 +0000 (+0400) Subject: tp_smapi.get need a batid param X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/1046cf6ce9b6a96ab6d6ef3ea7e9ffca07e12822 tp_smapi.get need a batid param --- 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