We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b91c38 commit d7b387bCopy full SHA for d7b387b
1 file changed
resources/scripts/components/server/console/ServerDetailsBlock.tsx
@@ -98,12 +98,12 @@ const ServerDetailsBlock = ({ className }: { className?: string }) => {
98
title={'Uptime'}
99
color={getBackgroundColor(status === 'running' ? 0 : status !== 'offline' ? 9 : 10, 10)}
100
>
101
- {status === 'starting' || status === 'stopping' ? (
102
- capitalize(status)
+ {status === null ? (
+ "Offline"
103
) : stats.uptime > 0 ? (
104
<UptimeDuration uptime={stats.uptime / 1000} />
105
) : (
106
- 'Offline'
+ capitalize(status)
107
)}
108
</StatBlock>
109
<StatBlock icon={faMicrochip} title={'CPU Load'} color={getBackgroundColor(stats.cpu, limits.cpu)}>
0 commit comments