From 216937af29f22e6a9ee7f2124bb8e22d57f961e3 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 22 Jun 2009 10:20:06 +0000 Subject: [PATCH] themes: properly format load values in theme headers --- .../freifunk-hannover/luasrc/view/themes/freifunk-hannover/header.htm | 2 +- themes/openwrt-light/luasrc/view/themes/openwrt-light/header.htm | 2 +- .../openwrt.org-oxygen/luasrc/view/themes/openwrt.org-oxygen/header.htm | 2 +- themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/themes/freifunk-hannover/luasrc/view/themes/freifunk-hannover/header.htm b/themes/freifunk-hannover/luasrc/view/themes/freifunk-hannover/header.htm index 657d5e813..8904837db 100644 --- a/themes/freifunk-hannover/luasrc/view/themes/freifunk-hannover/header.htm +++ b/themes/freifunk-hannover/luasrc/view/themes/freifunk-hannover/header.htm @@ -62,7 +62,7 @@ require("luci.http").prepare_content("application/xhtml+xml")

<%=luci.version.distname%>

<%=luci.version.distversion%>
-<%:load%>: <%=load1%> <%=load5%> <%=load15%>
+<%:load%>: <%="%.2f" % load1%> <%="%.2f" % load5%> <%="%.2f" % load15%>
<%:hostname%>: <%=hostname%>

diff --git a/themes/openwrt-light/luasrc/view/themes/openwrt-light/header.htm b/themes/openwrt-light/luasrc/view/themes/openwrt-light/header.htm index 689353c48..6883130a2 100644 --- a/themes/openwrt-light/luasrc/view/themes/openwrt-light/header.htm +++ b/themes/openwrt-light/luasrc/view/themes/openwrt-light/header.htm @@ -62,7 +62,7 @@ require("luci.http").prepare_content("application/xhtml+xml")

<%=luci.version.distname%>

: <%=luci.version.distversion%> | -<%:load%>: <%=load1%> <%=load5%> <%=load15%> | +<%:load%>: <%="%.2f" % load1%> <%="%.2f" % load5%> <%="%.2f" % load15%> | <%:hostname%>: <%=hostname%>

diff --git a/themes/openwrt.org-oxygen/luasrc/view/themes/openwrt.org-oxygen/header.htm b/themes/openwrt.org-oxygen/luasrc/view/themes/openwrt.org-oxygen/header.htm index fe18214ce..31873182c 100644 --- a/themes/openwrt.org-oxygen/luasrc/view/themes/openwrt.org-oxygen/header.htm +++ b/themes/openwrt.org-oxygen/luasrc/view/themes/openwrt.org-oxygen/header.htm @@ -64,7 +64,7 @@ require("luci.http").prepare_content("application/xhtml+xml")

<%=luci.version.distname%>

<%=luci.version.distversion%>
-<%:load%>: <%=load1%> <%=load5%> <%=load15%>
+<%:load%>: <%="%.2f" % load1%> <%="%.2f" % load5%> <%="%.2f" % load15%>
<%:hostname%>: <%=hostname%>

diff --git a/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm b/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm index 131e76722..80aad132c 100644 --- a/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm +++ b/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm @@ -62,7 +62,7 @@ require("luci.http").prepare_content("application/xhtml+xml")

<%=luci.version.distname%>

<%=luci.version.distversion%>
-<%:load%>: <%=load1%> <%=load5%> <%=load15%>
+<%:load%>: <%="%.2f" % load1%> <%="%.2f" % load5%> <%="%.2f" % load15%>
<%:hostname%>: <%=hostname%>

-- 2.11.0