diff --git a/src/fr/devinsy/statoolinfos/htmlize/FederationHeaderView.java b/src/fr/devinsy/statoolinfos/htmlize/FederationHeaderView.java index cd60b9d..cd15008 100644 --- a/src/fr/devinsy/statoolinfos/htmlize/FederationHeaderView.java +++ b/src/fr/devinsy/statoolinfos/htmlize/FederationHeaderView.java @@ -82,7 +82,7 @@ public class FederationHeaderView data.setAttribute("crawlLink", "href", federation.getTechnicalName() + "-crawl.xhtml"); data.setAttribute("uptimeLink", "href", federation.getLocalFileBaseName() + "-uptimes.xhtml"); - if (HtmlizerContext.instance().getUptimeJournal().hasRecentError(federation.getServicesAll())) + if (HtmlizerContext.instance().getUptimeJournal().hasRecentError(federation.getActiveServices())) { data.setAttribute("uptimeLinkImg", "src", "circle-icons/countdown-ko-mono.svg"); } diff --git a/src/fr/devinsy/statoolinfos/htmlize/OrganizationHeaderView.java b/src/fr/devinsy/statoolinfos/htmlize/OrganizationHeaderView.java index ab9b74a..e8e0bac 100644 --- a/src/fr/devinsy/statoolinfos/htmlize/OrganizationHeaderView.java +++ b/src/fr/devinsy/statoolinfos/htmlize/OrganizationHeaderView.java @@ -115,7 +115,7 @@ public class OrganizationHeaderView } data.setAttribute("uptimeLink", "href", organization.getLocalFileBaseName() + "-uptimes.xhtml"); - if (HtmlizerContext.instance().getUptimeJournal().hasRecentError(organization.getServices())) + if (HtmlizerContext.instance().getUptimeJournal().hasRecentError(organization.getActiveServices())) { data.setAttribute("uptimeLinkImg", "src", "circle-icons/countdown-ko-mono.svg"); }