mirror of
https://github.com/rmoren97/mc-manager.git
synced 2026-02-10 17:40:30 -08:00
update
This commit is contained in:
parent
ca43e4aee8
commit
012388c288
@ -238,7 +238,7 @@ export default function ServerDetailPage() {
|
||||
data={cpuHistory}
|
||||
maxDataPoints={MAX_STATS_POINTS}
|
||||
label="CPU Usage"
|
||||
value={currentStats ? `${currentStats.cpu.toFixed(1)}%` : '—'}
|
||||
value={currentStats?.cpu != null ? `${currentStats.cpu.toFixed(1)}%` : '—'}
|
||||
color="cyan"
|
||||
maxY={100}
|
||||
unit="%"
|
||||
@ -247,8 +247,8 @@ export default function ServerDetailPage() {
|
||||
data={memHistory}
|
||||
maxDataPoints={MAX_STATS_POINTS}
|
||||
label="Memory Usage"
|
||||
value={currentStats ? formatBytes(currentStats.memUsed) : '—'}
|
||||
subValue={currentStats ? `/ ${formatBytes(currentStats.memLimit)}` : undefined}
|
||||
value={currentStats?.memUsed != null ? formatBytes(currentStats.memUsed) : '—'}
|
||||
subValue={currentStats?.memLimit != null ? `/ ${formatBytes(currentStats.memLimit)}` : undefined}
|
||||
color="emerald"
|
||||
maxY={currentStats?.memLimit || server.memory.max * 1024 * 1024}
|
||||
unit=""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user