explorer/api down, switch grid_stats src to gridproxy

This commit is contained in:
timurgordon
2022-09-02 12:43:18 +02:00
parent ab6b34df26
commit 76634f23de
2 changed files with 5 additions and 4 deletions

View File

@@ -51,6 +51,7 @@ We are a global, decentralized, open-source movement of believers in a better wo
{% grid_stats() %} {% grid_stats() %}
### The ThreeFold Grid ### The ThreeFold Grid
## **Live and Operational** ## **Live and Operational**

View File

@@ -1,10 +1,10 @@
{% set styles = "background-image: url('images/grid_map.png');" %} {% set styles = "background-image: url('images/grid_map.png');" %}
{% set data = load_data(url="https://explorer.threefold.io/api/stats", required=false, format="json") %} {% set data = load_data(url="https://gridproxy.grid.tf/stats?status=up", required=false, format="json") %}
{% if data %} {% if data %}
{% set capacity = data.hru + data.sru / 1000 %} {% set capacity = data.totalHru + data.totalSru / 1000 %}
{% set nodes = data.onlinenodes %} {% set nodes = data.nodes %}
{% set countries = data.countries %} {% set countries = data.countries %}
{% set cores = data.cru %} {% set cores = data.totalCru %}
{% endif %} {% endif %}