X-Git-Url: http://git.hcoop.net/hcoop/portal.git/blobdiff_plain/b6e2318111ec35ec2015ddf17679dd31270d77cb..6aa0cd21ab8b74949d95d375e22dae72a9f35b8c:/webbw.mlt
diff --git a/webbw.mlt b/webbw.mlt
index 95a8591..272a281 100644
--- a/webbw.mlt
+++ b/webbw.mlt
@@ -1,6 +1,6 @@
<% @header [("title", ["Web usage stats"])] %>
-Web virtual host bandwidth (bandwidth usage of Apache sites in this calendar month)
+Web virtual host bandwidth (bandwidth usage of Apache sites <% case $"last" of "1" => "last month" | "2" => "two months ago" | _ => "this calendar month" %>)
<% if $"last" = "1" then %>
[Previous] | [Current]
<% elseif $"last" = "2" then %>
@@ -10,18 +10,18 @@
<% end %>
-<% val (sum, doms, groups) = iff $"last" = "" then
+<% val stats = iff $"last" = "" then
Stats.getWebbw 0
else
Stats.getWebbw (Web.stoi ($"last")) %>
Bandwidth (kB) | |
Total Apache bandwidth | <% sum %> |
Total Apache bandwidth | <% #total stats %> |
<% #hostname d %> [detail] | <% n %> |
<% #hostname (#host dom) %><% if #ssl (#host dom) then %> (SSL)<% end %> [detail] | <% #size dom %> |