From e39b2bff3f01f299201d6c394cbeb7e28e852758 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 18 Oct 2008 21:51:44 +0000 Subject: * luci/applications: add experimental realtime statistics --- .../luasrc/view/livestats/loadavg.htm | 44 ++++++++++++++++++ .../luasrc/view/livestats/traffic.htm | 54 ++++++++++++++++++++++ .../luasrc/view/livestats/wireless.htm | 30 ++++++++++++ 3 files changed, 128 insertions(+) create mode 100644 applications/luci-livestats/luasrc/view/livestats/loadavg.htm create mode 100644 applications/luci-livestats/luasrc/view/livestats/traffic.htm create mode 100644 applications/luci-livestats/luasrc/view/livestats/wireless.htm (limited to 'applications/luci-livestats/luasrc/view/livestats') diff --git a/applications/luci-livestats/luasrc/view/livestats/loadavg.htm b/applications/luci-livestats/luasrc/view/livestats/loadavg.htm new file mode 100644 index 0000000000..a4e8fae00a --- /dev/null +++ b/applications/luci-livestats/luasrc/view/livestats/loadavg.htm @@ -0,0 +1,44 @@ +<%+header%> + + + + + + + + + +
+ +<%+footer%> diff --git a/applications/luci-livestats/luasrc/view/livestats/traffic.htm b/applications/luci-livestats/luasrc/view/livestats/traffic.htm new file mode 100644 index 0000000000..d914fddc44 --- /dev/null +++ b/applications/luci-livestats/luasrc/view/livestats/traffic.htm @@ -0,0 +1,54 @@ +<%+header%> + + + + + + + +<% + local interfaces = { } + local uci = luci.model.uci.cursor_state() + + uci:foreach("network", "interface", + function(s) + if s.ifname ~= "lo" then + table.insert( interfaces, + "'" .. ( s.ifname or s['.name'] ) .. "'" + ) + end + end + ) +-%> + + + +
+ +<%+footer%> diff --git a/applications/luci-livestats/luasrc/view/livestats/wireless.htm b/applications/luci-livestats/luasrc/view/livestats/wireless.htm new file mode 100644 index 0000000000..2ee60139e0 --- /dev/null +++ b/applications/luci-livestats/luasrc/view/livestats/wireless.htm @@ -0,0 +1,30 @@ +<%+header%> + + + + + + + + + +
+ +<%+footer%> -- cgit v1.2.3