themes: fix load number formatting
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 17 Jan 2015 14:17:42 +0000 (15:17 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 17 Jan 2015 14:17:42 +0000 (15:17 +0100)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
themes/luci-theme-freifunk-generic/luasrc/view/themes/freifunk-generic/header.htm
themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm

index f6d40edb5f9388e16bf2cdcd4d851f61928e39c6..d74916aea1dc3b0cd9575449693f909631b58d96 100644 (file)
                </div>
                <div class="header_right">
                        <%=luci.version.distversion%><br />
-                       <%:Load%>: <%="%.2f" % loadinfo[1] / 65535.0%> <%="%.2f" % loadinfo[2] / 65535.0%> <%="%.2f" % loadinfo[3] / 65535.0%><br />
+                       <%:Load%>: <%="%.2f" % (loadinfo[1] / 65535.0)%> <%="%.2f" % (loadinfo[2] / 65535.0)%> <%="%.2f" % (loadinfo[3] / 65535.0)%><br />
                        <%:Hostname%>: <%=boardinfo.hostname or "?"%><br />
                        <span id="xhr_poll_status" style="display:none" onclick="XHR.running() ? XHR.halt() : XHR.run()">
                                <%:Auto Refresh%>:
index e17df95d2b0d802eb7a0cdf29926820f93cb6697..d43cc9c027049e3b0eb07155f11fee1491cc2b56 100644 (file)
 
 <div class="hostinfo">
        <%=(boardinfo.hostname or "?")%> | <%=ver.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)%>
        <span id="xhr_poll_status" style="display:none" onclick="XHR.running() ? XHR.halt() : XHR.run()">
                | <%:Auto Refresh%>:
                <span id="xhr_poll_status_on"><%:on%></span>