From 30d45d0c0e0a08725b017693460a6d70379a68ac Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 17 Jan 2015 15:17:42 +0100 Subject: themes: fix load number formatting Signed-off-by: Jo-Philipp Wich --- .../luasrc/view/themes/freifunk-generic/header.htm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'themes/luci-theme-freifunk-generic/luasrc') 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 "?"%>