{% extends "base.html" %}
{% block title %}客户端 {{ client }} - Squid Manager{% endblock %}
{% block head %}
{% endblock %}
{% block content %}
{# P2-4: per-client 24h trend. When the client has no rows in the parsed
log, render an empty-state card instead of empty charts so the page
is informative (and so we don't ship a 0-axis Chart.js graph). #}
{% if not has_data %}
总请求数
{{ trend.total_requests | thousands }}
该客户端的累计请求
总流量
{{ format_bytes(trend.total_bytes) }}
原始字节数 {{ trend.total_bytes | thousands }}
平均请求大小
{{ format_bytes(trend.avg_size_bytes) }}
{{ '%.0f' % trend.avg_size_bytes }} 字节/请求
首次出现
{% if trend.time_start %}
{{ trend.time_start.strftime('%m-%d %H:%M') }}
{% else %}
-
{% endif %}
{% if trend.time_start %}{{ trend.time_start.strftime('%Y-%m-%d %H:%M:%S UTC') }}{% else %}-{% endif %}
最后出现
{% if trend.time_end %}
{{ trend.time_end.strftime('%m-%d %H:%M') }}
{% else %}
-
{% endif %}
{% if trend.time_end %}{{ trend.time_end.strftime('%Y-%m-%d %H:%M:%S UTC') }}{% else %}-{% endif %}
Top 主机数
{{ trend.top_hosts | length }}
访问过的目标主机