themes: properly format load values in theme headers
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 22 Jun 2009 10:20:06 +0000 (10:20 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 22 Jun 2009 10:20:06 +0000 (10:20 +0000)
themes/freifunk-hannover/luasrc/view/themes/freifunk-hannover/header.htm
themes/openwrt-light/luasrc/view/themes/openwrt-light/header.htm
themes/openwrt.org-oxygen/luasrc/view/themes/openwrt.org-oxygen/header.htm
themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm

index 657d5e81324a35b2ca67f862bf7292facf08b55a..8904837db0373cefb2619ca4f2dc3c451942aa78 100644 (file)
@@ -62,7 +62,7 @@ require("luci.http").prepare_content("application/xhtml+xml")
 <h1><%=luci.version.distname%></h1>
 <p>
 <%=luci.version.distversion%><br />
-<%:load%>: <%=load1%> <%=load5%> <%=load15%><br />
+<%:load%>: <%="%.2f" % load1%> <%="%.2f" % load5%> <%="%.2f" % load15%><br />
 <%:hostname%>: <%=hostname%>
 </p>
 </div>
index 689353c48bdcc27b4a81366b4ad9b9fcb0f82476..6883130a245cfa093d9fddca266c0ae7f5098ecf 100644 (file)
@@ -62,7 +62,7 @@ require("luci.http").prepare_content("application/xhtml+xml")
 <h1><%=luci.version.distname%></h1>
 <p>
 : <%=luci.version.distversion%> |
-<%:load%>: <%=load1%> <%=load5%> <%=load15%> |
+<%:load%>: <%="%.2f" % load1%> <%="%.2f" % load5%> <%="%.2f" % load15%> |
 <%:hostname%>: <%=hostname%>
 </p>
 </div>
index fe18214ce10a8cf6947260dbb8e634652fe4e818..31873182cecbaab0b640eb9f5da97f70a6c7d879 100644 (file)
@@ -64,7 +64,7 @@ require("luci.http").prepare_content("application/xhtml+xml")
 <h1><%=luci.version.distname%></h1>
 <p>
 <%=luci.version.distversion%><br />
-<%:load%>: <%=load1%> <%=load5%> <%=load15%><br />
+<%:load%>: <%="%.2f" % load1%> <%="%.2f" % load5%> <%="%.2f" % load15%><br />
 <%:hostname%>: <%=hostname%>
 </p>
 </div>
index 131e767221259013dc6da068288ab94f0fb0888e..80aad132c283873e66a7ac0edd2f563671e98dad 100644 (file)
@@ -62,7 +62,7 @@ require("luci.http").prepare_content("application/xhtml+xml")
 <h1><%=luci.version.distname%></h1>
 <p>
 <%=luci.version.distversion%><br />
-<%:load%>: <%=load1%> <%=load5%> <%=load15%><br />
+<%:load%>: <%="%.2f" % load1%> <%="%.2f" % load5%> <%="%.2f" % load15%><br />
 <%:hostname%>: <%=hostname%>
 </p>
 </div>