Don't multiply battery percentages by 100, vicious already returns percent

This commit is contained in:
crater2150 2020-10-27 00:02:09 +01:00
parent 34c291256a
commit 3de5c18e15

View file

@ -211,7 +211,7 @@ function widgets.battery(s)
widget.background_color = beautiful.bg_focus
end
widget.overlay.markup = percentage_overlay(
args[2] * 100, beautiful.bg_normal, args[1] .. " "
args[2], beautiful.bg_normal, args[1] .. " "
)
return args[2]
end