{% extends "base.html" %} {% block content %}

Latency to {{ target }}

Job submitted at {{ target.submitted.strftime('%Y-%m-%d %H:%M') }}

{% macro color(packetloss) -%} {% if packetloss >= 50 %} "red" {% elif packetloss > 0 %} "orange" {% else %} "green" {% endif %} {%- endmacro %} {% for r in results %} {% if r.probes_sent is not none() and r.probes_received is not none() and r.probes_sent != 0 %} {% set packetloss = (100 * (r.probes_sent - r.probes_received) / r.probes_sent) %} {% endif %} {% endfor %}
Latency Jitter Packet loss Source Comment Contact Date
{% if r.avgrtt is not none() %}{{ r.avgrtt|round(2) }} ms{% endif %} {% if r.jitter is not none() %}{{ r.jitter|round(2) }} ms{% endif %} {% if r.probes_sent is not none() and r.probes_received is not none() and r.probes_sent != 0 %} {{ packetloss|round(2) }}% ({{ r.probes_sent - r.probes_received }}/{{ r.probes_sent }}) {% endif %} {{ r.participant.name }} {% if r.participant.country is not none() %} ({{ r.participant.country }}) {% endif %} {{ r.participant.comment|default("", True) }} {{ r.participant.contact }} {{ r.date.strftime('%Y-%m-%d %H:%M') }}
{% endblock %}