Merge pull request #272 from aajjbb/feature/powerarrow-dark-net-fix

Using string.format() on the net widget in powerarrow-dark.
This commit is contained in:
Luca CPZ 2019-11-12 11:52:50 +00:00 committed by GitHub
commit daf83dde47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -247,9 +247,9 @@ local neticon = wibox.widget.imagebox(theme.widget_net)
local net = lain.widget.net({
settings = function()
widget:set_markup(markup.font(theme.font,
markup("#7AC82E", " " .. net_now.received)
markup("#7AC82E", " " .. string.format("%06.1f", net_now.received))
.. " " ..
markup("#46A8C3", " " .. net_now.sent .. " ")))
markup("#46A8C3", " " .. string.format("%06.1f", net_now.sent) .. " ")))
end
})