mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
feat(detail): add Load info
This commit is contained in:
parent
7970582f8c
commit
671e31c148
@ -200,6 +200,19 @@ export default function ServerDetailClient({
|
||||
</Card>
|
||||
</section>
|
||||
<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">{t("Load")}</p>
|
||||
{data.status.NetInTransfer ? (
|
||||
<div className="text-xs">
|
||||
{data.status.Load1} / {data.status.Load5} /{" "}
|
||||
{data.status.Load15}
|
||||
</div>
|
||||
) : null}
|
||||
</section>
|
||||
</CardContent>
|
||||
</Card>
|
||||
<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">
|
||||
|
@ -71,7 +71,8 @@
|
||||
"System": "System",
|
||||
"CPU": "CPU",
|
||||
"Upload": "Upload",
|
||||
"Download": "Download"
|
||||
"Download": "Download",
|
||||
"Load": "Load"
|
||||
},
|
||||
"ServerDetailChartClient": {
|
||||
"chart_fetch_error_message": "Please check your environment variables and review the server console",
|
||||
|
@ -70,6 +70,7 @@
|
||||
"Region": "地域",
|
||||
"System": "システム",
|
||||
"CPU": "CPU",
|
||||
"Load": "負荷",
|
||||
"Upload": "Upload",
|
||||
"Download": "Download"
|
||||
},
|
||||
|
@ -71,7 +71,8 @@
|
||||
"System": "系統",
|
||||
"CPU": "CPU",
|
||||
"Upload": "上傳",
|
||||
"Download": "下載"
|
||||
"Download": "下載",
|
||||
"Load": "負載"
|
||||
},
|
||||
"ServerDetailChartClient": {
|
||||
"chart_fetch_error_message": "獲取伺服器詳情失敗,請檢查您的環境變數並檢查伺服器控制台",
|
||||
|
@ -71,10 +71,11 @@
|
||||
"System": "系统",
|
||||
"CPU": "CPU",
|
||||
"Upload": "上传",
|
||||
"Download": "下载"
|
||||
"Download": "下载",
|
||||
"Load": "负载"
|
||||
},
|
||||
"ServerDetailChartClient": {
|
||||
"chart_fetch_error_message": "获取服务器详情失败,请检查您的环境变量并检查服务器控制台",
|
||||
"chart_fetch_error_message": "获取服务器详情失败,请检查您的环境变量并检查服务器控制台",
|
||||
"Process": "进程",
|
||||
"Disk": "磁盘",
|
||||
"Mem": "内存",
|
||||
|
Loading…
Reference in New Issue
Block a user