From 5fb8b84d84f0d8328923d75c6ce6294fef5f933c Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Thu, 29 Oct 2020 13:17:45 +0800 Subject: [PATCH] Explorer: tweak cluster stats page (#13267) --- explorer/src/pages/ClusterStatsPage.tsx | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/explorer/src/pages/ClusterStatsPage.tsx b/explorer/src/pages/ClusterStatsPage.tsx index 75644be3fd..4f4a70013e 100644 --- a/explorer/src/pages/ClusterStatsPage.tsx +++ b/explorer/src/pages/ClusterStatsPage.tsx @@ -54,7 +54,7 @@ function StatsCardBody() { const { avgSlotTime_1h, avgSlotTime_1min, epochInfo } = dashboardInfo; const hourlySlotTime = Math.round(1000 * avgSlotTime_1h); - const averageSlotTime = Math.round(1000 * avgSlotTime_1min) + "ms"; + const averageSlotTime = Math.round(1000 * avgSlotTime_1min); const { slotIndex, slotsInEpoch } = epochInfo; const currentEpoch = epochInfo.epoch.toString(); const epochProgress = ((100 * slotIndex) / slotsInEpoch).toFixed(1) + "%"; @@ -81,20 +81,24 @@ function StatsCardBody() { )} - Slot time - {averageSlotTime} + Slot time (1min average) + {averageSlotTime}ms + + + Slot time (1hr average) + {hourlySlotTime}ms Epoch - {currentEpoch} + {currentEpoch} Epoch progress - {epochProgress} + {epochProgress} - Epoch time remaining - {epochTimeRemaining} + Epoch time remaining (approx.) + ~{epochTimeRemaining} );