shorten last-seen-healthy entries

This commit is contained in:
4cuck committed 2023-10-16 23:32:10 +02:00
1 parent f9f05a7e25
commit 966edd8f92
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -32,6 +32,7 @@
<li><code>Average Time</code> is the response time average over the last {{ping_avg_interval_h}} hours. This is not a network ping.</li> <li><code>Average Time</code> is the response time average over the last {{ping_avg_interval_h}} hours. This is not a network ping.</li>
<li><code>All Time %</code> for all time percentage of the instance being healthy.</li> <li><code>All Time %</code> for all time percentage of the instance being healthy.</li>
<li><code>RSS</code> whether the host has RSS feeds enabled.</li> <li><code>RSS</code> whether the host has RSS feeds enabled.</li>
<li><code>LSH</code> Last Seen Healthy, for the last time an instance was seen healthy.</li>
<li><code>Nitter Version</code> which nitter version the host reports.</li> <li><code>Nitter Version</code> which nitter version the host reports.</li>
<li><code>Connectivity</code> the IP connectivity support. One of All, IPv4, IPv6</li> <li><code>Connectivity</code> the IP connectivity support. One of All, IPv4, IPv6</li>
<li><code>Points</code> is a weighted instance score based on the availability over the last 3h, 30 and 120 days, together with the version.</li> <li><code>Points</code> is a weighted instance score based on the availability over the last 3h, 30 and 120 days, together with the version.</li>
+1 -1
View File
@@ -75,7 +75,7 @@
{%- else -%} {%- else -%}
{# <!-- no healthy entries, show last time host was seen healthy --> #} {# <!-- no healthy entries, show last time host was seen healthy --> #}
{%- if host.last_healthy -%} {%- if host.last_healthy -%}
Last seen healthy: {{host.last_healthy | truncate(length=16, end="") | replace(from="-", to=".") | replace(from="T", to=" ")}} LSH: {{host.last_healthy | truncate(length=16, end="") | replace(from="-", to=".") | replace(from="T", to=" ")}}
<a rel="nofollow" href="https://time.is/UTC">UTC</a> <a rel="nofollow" href="https://time.is/UTC">UTC</a>
{%- else -%} {%- else -%}
Never seen healthy. Never seen healthy.