From df29c9ee7249fe4c28dd6e79c07de93b1526329f Mon Sep 17 00:00:00 2001 From: Elmar <102954831+elmar-vega@users.noreply.github.com> Date: Thu, 15 Sep 2022 11:47:51 +0100 Subject: [PATCH] fix(stats-manager): fix uptime pointing to incorrect field (#1328) --- .../stats-manager/__generated__/NetworkStats.ts | 8 ++++---- .../src/components/stats-manager/stats-manager.tsx | 2 +- libs/network-stats/src/config/stats-fields.ts | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libs/network-stats/src/components/stats-manager/__generated__/NetworkStats.ts b/libs/network-stats/src/components/stats-manager/__generated__/NetworkStats.ts index 1f4e6990f..f925889b6 100644 --- a/libs/network-stats/src/components/stats-manager/__generated__/NetworkStats.ts +++ b/libs/network-stats/src/components/stats-manager/__generated__/NetworkStats.ts @@ -25,10 +25,6 @@ export interface NetworkStats_nodeData { * Number of nodes validating */ validatingNodes: number; - /** - * Total uptime for all epochs across all nodes. Or specify a number of epochs - */ - uptime: number; } export interface NetworkStats_statistics { @@ -81,6 +77,10 @@ export interface NetworkStats_statistics { * Current chain ID */ chainId: string; + /** + * RFC3339Nano uptime of the node + */ + upTime: string; } export interface NetworkStats { diff --git a/libs/network-stats/src/components/stats-manager/stats-manager.tsx b/libs/network-stats/src/components/stats-manager/stats-manager.tsx index b033bd268..43d414d40 100644 --- a/libs/network-stats/src/components/stats-manager/stats-manager.tsx +++ b/libs/network-stats/src/components/stats-manager/stats-manager.tsx @@ -24,7 +24,6 @@ const STATS_QUERY = gql` totalNodes inactiveNodes validatingNodes - uptime } statistics { status @@ -39,6 +38,7 @@ const STATS_QUERY = gql` appVersion chainVersion chainId + upTime } } `; diff --git a/libs/network-stats/src/config/stats-fields.ts b/libs/network-stats/src/config/stats-fields.ts index ffed3dda9..553acf3dd 100644 --- a/libs/network-stats/src/config/stats-fields.ts +++ b/libs/network-stats/src/config/stats-fields.ts @@ -140,7 +140,7 @@ export const statsFields: { [key in keyof Stats]: StatFields[] } = { description: t('Tendermint software version on this node'), }, ], - uptime: [ + upTime: [ { title: t('Uptime'), formatter: (t: string) => {