% @header [("title", ["Web usage stats"])] %>
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 %>
[Next]
<% else %>
[Last month]
<% end %>
<% val stats = iff $"last" = "" then
Stats.getWebbw 0
else
Stats.getWebbw (Web.stoi ($"last")) %>
Bandwidth (kB) | |
Total Apache bandwidth | <% #total stats %> |
<% #hostname (#host dom) %><% if #ssl (#host dom) then %> (SSL)<% end %> [detail] | <% #size dom %> |
Bandwidth (kB) | ||
<% #user group %> | <% foreach dom in #hosts group do %> [<% #hostname dom %><% if #ssl dom then %> (SSL)<% end %> (S)] <% end %> | <% #size group %> |