% @header [("title", ["Web usage stats"])] %>
Web virtual host bandwidth (bandwidth usage of Apache sites in this calendar month)
<% if $"last" = "1" then %>
[Previous] | [Current]
<% elseif $"last" = "2" then %>
[Next]
<% else %>
[Last month]
<% end %>
<% val (sum, doms, groups) = iff $"last" = "" then
Stats.getWebbw 0
else
Stats.getWebbw (Web.stoi ($"last")) %>
Bandwidth by ownership
| | Bandwidth (kB) |
|
<% foreach (gr, ds, n) in groups do %>
<% gr %> |
<% foreach dom in ds do %>
[<% #hostname dom %> (S)]
<% end %>
| <% n %> |
<% end %>