diff --git a/backend/src/routes.ts b/backend/src/routes.ts index db5b4f05f..288e537c4 100644 --- a/backend/src/routes.ts +++ b/backend/src/routes.ts @@ -630,6 +630,7 @@ class Routes { res.json({ hashrates: hashrates, difficulty: difficulty, + currentHashrate: await bitcoinClient.getNetworkHashPs() }); } catch (e) { res.status(500).send(e instanceof Error ? e.message : e); diff --git a/frontend/src/app/components/hashrate-chart/hashrate-chart.component.html b/frontend/src/app/components/hashrate-chart/hashrate-chart.component.html index b01a68dc4..4223eb50f 100644 --- a/frontend/src/app/components/hashrate-chart/hashrate-chart.component.html +++ b/frontend/src/app/components/hashrate-chart/hashrate-chart.component.html @@ -5,8 +5,7 @@
- {{ hashrates.currentHashrate | amountShortener }} - hashes/sec + {{ hashrates.currentHashrate | amountShortener: 1 : 'H/s' }}