Browse Source

Round RTT to 2 digits

Baptiste Jonglez 10 years ago
parent
commit
5f01f8d53c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      templates/results.html

+ 2 - 2
templates/results.html

@@ -27,8 +27,8 @@
   {% for r in results %}
   {% set packetloss = (100 * (r.probes_sent - r.probes_received) / r.probes_sent) %}
   <tr>
-    <td>{% if r.avgrtt is not none() %}{{ r.avgrtt }} ms{% endif %}</td>
-    <td>{% if r.jitter is not none() %}{{ r.jitter }} ms{% endif %}</td>
+    <td>{% if r.avgrtt is not none() %}{{ r.avgrtt|round(2) }} ms{% endif %}</td>
+    <td>{% if r.jitter is not none() %}{{ r.jitter|round(2) }} ms{% endif %}</td>
     <td><span class={{ color(packetloss) }}>
         {{ packetloss|round(2) }}%
       </span>