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
3 changed files with 6 additions and 6 deletions
@@ -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 {
@@ -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
}
}
`;
@@ -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) => {