aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authortrizen <trizen@protonmail.com>2020-11-05 15:10:02 +0200
committerJesús <heckyel@hyperbola.info>2020-11-09 17:45:17 -0500
commit2b36daf98cc27fafc1a980f7d8d1f1e5d38a75a7 (patch)
treefc1dc80390955a9f310fcd3a80bf5381d394f366 /lib
parent2aa746dbbb8d775f7acc49cd79c3464887e955ce (diff)
downloadfair-viewer-2b36daf98cc27fafc1a980f7d8d1f1e5d38a75a7.tar.lz
fair-viewer-2b36daf98cc27fafc1a980f7d8d1f1e5d38a75a7.tar.xz
fair-viewer-2b36daf98cc27fafc1a980f7d8d1f1e5d38a75a7.zip
Health status of invidious instances is back.
Signed-off-by: Jesús <heckyel@hyperbola.info>
Diffstat (limited to 'lib')
-rw-r--r--lib/WWW/FairViewer.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/WWW/FairViewer.pm b/lib/WWW/FairViewer.pm
index 8a978d4..dd867b5 100644
--- a/lib/WWW/FairViewer.pm
+++ b/lib/WWW/FairViewer.pm
@@ -569,9 +569,9 @@ sub select_good_invidious_instances {
#<<<
my @candidates =
grep { not $ignored{$_->[0]} }
- #~ grep { $args{lax} ? 1 : eval { lc($_->[1]{monitor}{dailyRatios}[0]{label} // '') eq 'success' } }
- #~ grep { $args{lax} ? 1 : eval { lc($_->[1]{monitor}{weeklyRatio}{label} // '') eq 'success' } }
- #~ grep { $args{lax} ? 1 : eval { lc($_->[1]{monitor}{statusClass} // '') eq 'success' } }
+ grep { $args{lax} ? 1 : eval { lc($_->[1]{monitor}{dailyRatios}[0]{label} // '') eq 'success' } }
+ grep { $args{lax} ? 1 : eval { lc($_->[1]{monitor}{weeklyRatio}{label} // '') eq 'success' } }
+ grep { $args{lax} ? 1 : eval { lc($_->[1]{monitor}{statusClass} // '') eq 'success' } }
#~ grep { $args{lax} ? 1 : !exists($_->[1]{stats}{error}) }
grep { lc($_->[1]{type} // '') eq 'https' } @$instances;
#>>>