Update stats
This commit is contained in:
@@ -86,17 +86,13 @@
|
||||
{{ stats[2] }}
|
||||
<span class="block text-2xl uppercase">cores</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="my-4 mx-auto text-center">
|
||||
<a
|
||||
:href="section.link"
|
||||
target="_blank"
|
||||
class="
|
||||
|
||||
|
||||
inline-block
|
||||
bg-white
|
||||
lg:text-lg
|
||||
@@ -138,7 +134,7 @@ export default {
|
||||
// "https://explorer.threefold.io/api/farms?network=all"
|
||||
// );
|
||||
const results = await axios.get(
|
||||
"https://explorer.threefold.io/api/stats?grid=grid2&network=all"
|
||||
"https://explorer.threefold.io/api/stats"
|
||||
);
|
||||
// let farms = getFarms.data.length;
|
||||
let nodes = results.data.onlinenodes;
|
||||
|
||||
@@ -213,10 +213,10 @@ export default {
|
||||
async mounted() {
|
||||
try {
|
||||
const getFarms = await axios.get(
|
||||
"https://explorer.threefold.io/api/farms?grid=grid2&network=all"
|
||||
"https://explorer.threefold.io/api/farms?grid=all&network=all"
|
||||
);
|
||||
const results = await axios.get(
|
||||
"https://explorer.threefold.io/api/stats?grid=grid2&network=all"
|
||||
"https://explorer.threefold.io/api/stats"
|
||||
);
|
||||
let farms = getFarms.data.length;
|
||||
let hru = (results.data.hru / 1000).toFixed();
|
||||
|
||||
@@ -238,7 +238,7 @@ export default {
|
||||
// "https://explorer.threefold.io/api/farms?network=all"
|
||||
// );
|
||||
const results = await axios.get(
|
||||
"https://explorer.threefold.io/api/stats?grid=grid2&network=all"
|
||||
"https://explorer.threefold.io/api/stats"
|
||||
);
|
||||
// let farms = getFarms.data.length;
|
||||
let nodes = results.data.onlinenodes;
|
||||
|
||||
Reference in New Issue
Block a user