Show UptimeDuration for starting servers (#4284)
This commit is contained in:
parent
7b91c38396
commit
d7b387be3e
|
@ -98,12 +98,12 @@ const ServerDetailsBlock = ({ className }: { className?: string }) => {
|
||||||
title={'Uptime'}
|
title={'Uptime'}
|
||||||
color={getBackgroundColor(status === 'running' ? 0 : status !== 'offline' ? 9 : 10, 10)}
|
color={getBackgroundColor(status === 'running' ? 0 : status !== 'offline' ? 9 : 10, 10)}
|
||||||
>
|
>
|
||||||
{status === 'starting' || status === 'stopping' ? (
|
{status === null ? (
|
||||||
capitalize(status)
|
"Offline"
|
||||||
) : stats.uptime > 0 ? (
|
) : stats.uptime > 0 ? (
|
||||||
<UptimeDuration uptime={stats.uptime / 1000} />
|
<UptimeDuration uptime={stats.uptime / 1000} />
|
||||||
) : (
|
) : (
|
||||||
'Offline'
|
capitalize(status)
|
||||||
)}
|
)}
|
||||||
</StatBlock>
|
</StatBlock>
|
||||||
<StatBlock icon={faMicrochip} title={'CPU Load'} color={getBackgroundColor(stats.cpu, limits.cpu)}>
|
<StatBlock icon={faMicrochip} title={'CPU Load'} color={getBackgroundColor(stats.cpu, limits.cpu)}>
|
||||||
|
|
Loading…
Reference in New Issue