Skip to content

Commit d7b387b

Browse files
authored
Show UptimeDuration for starting servers (pterodactyl#4284)
1 parent 7b91c38 commit d7b387b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

resources/scripts/components/server/console/ServerDetailsBlock.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@ const ServerDetailsBlock = ({ className }: { className?: string }) => {
9898
title={'Uptime'}
9999
color={getBackgroundColor(status === 'running' ? 0 : status !== 'offline' ? 9 : 10, 10)}
100100
>
101-
{status === 'starting' || status === 'stopping' ? (
102-
capitalize(status)
101+
{status === null ? (
102+
"Offline"
103103
) : stats.uptime > 0 ? (
104104
<UptimeDuration uptime={stats.uptime / 1000} />
105105
) : (
106-
'Offline'
106+
capitalize(status)
107107
)}
108108
</StatBlock>
109109
<StatBlock icon={faMicrochip} title={'CPU Load'} color={getBackgroundColor(stats.cpu, limits.cpu)}>

0 commit comments

Comments
 (0)