<% @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")) %> <% foreach (d, n) in doms do %> <% end %>
Bandwidth (kB)
Total Apache bandwidth <% sum %>
 
<% #hostname d %> [detail]<% n %>


Bandwidth by ownership

<% foreach (gr, ds, n) in groups do %> <% end %>
Bandwidth (kB)
 
<% gr %> <% foreach dom in ds do %> [<% #hostname dom %> (S)] <% end %> <% n %>