{# Filtro para usuarios válidos (se mantiene igual) #} {% set valid_users = {} %} {% for user, connections in grouped_connections.items() %} {% if user and user != "-" and user != "Anónimo" %} {% set _ = valid_users.update({user: connections}) %} {% endif %} {% endfor %} {# Tarjetas de estadísticas con iconos Font Awesome #}
Usuarios Activos
{{ valid_users|length }}
Conexiones Totales
{% set total = namespace(value=0) %} {% for connections in valid_users.values() %} {% set total.value = total.value + connections|length %} {% endfor %} {{ total.value }}
| Tiempo | Método | URL | Datos | Delay Pool | Solicitudes | Dir. Remota |
|---|---|---|---|---|---|---|
| {% set seconds = connection.elapsed_time|float %} {% if seconds >= 3600 %} {{ "%.2f"|format(seconds/3600) }} horas {% elif seconds >= 60 %} {{ "%.2f"|format(seconds/60) }} min {% else %} {{ "%.2f"|format(seconds) }} seg {% endif %} | {{ connection.logType }} |
{{ connection.uri }}
|
{% if connection.fd_total != "N/A" %} {{ (connection.fd_total / 1024 /1024)|round(2) }} MB {% else %} N/A {% endif %} | {% if connection.delay_pool != "N/A" %} Pool {{ connection.delay_pool }} {% else %} N/A {% endif %} | {{ connection.nrequests }} | {{ connection.remote }} |