From: Jo-Philipp Wich Date: Sat, 17 Jan 2015 14:17:42 +0000 (+0100) Subject: themes: fix load number formatting X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=30d45d0c0e0a08725b017693460a6d70379a68ac;p=oweals%2Fluci.git themes: fix load number formatting Signed-off-by: Jo-Philipp Wich --- diff --git a/themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm b/themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm index f6d40edb5..d74916aea 100644 --- a/themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm +++ b/themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm @@ -123,7 +123,7 @@
<%=luci.version.distversion%>
- <%:Load%>: <%="%.2f" % loadinfo[1] / 65535.0%> <%="%.2f" % loadinfo[2] / 65535.0%> <%="%.2f" % loadinfo[3] / 65535.0%>
+ <%:Load%>: <%="%.2f" % (loadinfo[1] / 65535.0)%> <%="%.2f" % (loadinfo[2] / 65535.0)%> <%="%.2f" % (loadinfo[3] / 65535.0)%>
<%:Hostname%>: <%=boardinfo.hostname or "?"%>