feat: load info

This commit is contained in:
hamster1963 2024-12-01 16:48:27 +08:00
parent a2aaacb348
commit 90b87ee0b4

View File

@ -189,6 +189,19 @@ export default function ServerDetailOverview({
</Card> </Card>
</section> </section>
<section className="flex flex-wrap gap-2 mt-1"> <section className="flex flex-wrap gap-2 mt-1">
<Card className="rounded-[10px] bg-transparent border-none shadow-none">
<CardContent className="px-1.5 py-1">
<section className="flex flex-col items-start gap-0.5">
<p className="text-xs text-muted-foreground">{"Load"}</p>
{server.state.load_1 ? (
<div className="text-xs">
{server.state.load_1} / {server.state.load_5} /{" "}
{server.state.load_15}
</div>
) : null}
</section>
</CardContent>
</Card>
<Card className="rounded-[10px] bg-transparent border-none shadow-none"> <Card className="rounded-[10px] bg-transparent border-none shadow-none">
<CardContent className="px-1.5 py-1"> <CardContent className="px-1.5 py-1">
<section className="flex flex-col items-start gap-0.5"> <section className="flex flex-col items-start gap-0.5">