Upgrade charts to ChartJS 3 and improve UI for them

This commit is contained in:
DaneEveritt 2022-06-25 20:49:25 -04:00
parent 980f828edd
commit 182507ff0e
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
8 changed files with 269 additions and 179 deletions

View file

@ -85,9 +85,9 @@ const ServerDetailsBlock = ({ className }: { className?: string }) => {
</StatBlock>
<StatBlock
icon={faMicrochip}
title={'CPU'}
title={'CPU Load'}
color={getBackgroundColor(stats.cpu, limits.cpu)}
description={limits.memory
description={limits.cpu
? `This server is allowed to use up to ${limits.cpu}% of the host's available CPU resources.`
: 'No CPU limit has been configured for this server.'
}