fix(stats-manager): fix uptime pointing to incorrect field (#1328)

This commit is contained in:
Elmar 2022-09-15 11:47:51 +01:00 committed by GitHub
parent e3809f5bc3
commit df29c9ee72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -25,10 +25,6 @@ export interface NetworkStats_nodeData {
* Number of nodes validating * Number of nodes validating
*/ */
validatingNodes: number; validatingNodes: number;
/**
* Total uptime for all epochs across all nodes. Or specify a number of epochs
*/
uptime: number;
} }
export interface NetworkStats_statistics { export interface NetworkStats_statistics {
@ -81,6 +77,10 @@ export interface NetworkStats_statistics {
* Current chain ID * Current chain ID
*/ */
chainId: string; chainId: string;
/**
* RFC3339Nano uptime of the node
*/
upTime: string;
} }
export interface NetworkStats { export interface NetworkStats {

View File

@ -24,7 +24,6 @@ const STATS_QUERY = gql`
totalNodes totalNodes
inactiveNodes inactiveNodes
validatingNodes validatingNodes
uptime
} }
statistics { statistics {
status status
@ -39,6 +38,7 @@ const STATS_QUERY = gql`
appVersion appVersion
chainVersion chainVersion
chainId chainId
upTime
} }
} }
`; `;

View File

@ -140,7 +140,7 @@ export const statsFields: { [key in keyof Stats]: StatFields[] } = {
description: t('Tendermint software version on this node'), description: t('Tendermint software version on this node'),
}, },
], ],
uptime: [ upTime: [
{ {
title: t('Uptime'), title: t('Uptime'),
formatter: (t: string) => { formatter: (t: string) => {