mirror of
https://github.com/nezhahq/nezha.git
synced 2025-02-08 12:38:13 -05:00
[dash v0.3.1] restore: cpu info
This commit is contained in:
parent
d556d4fc7e
commit
29bc810a8f
@ -25,6 +25,7 @@
|
|||||||
<div class='ui content popup' style="margin-bottom: 0">
|
<div class='ui content popup' style="margin-bottom: 0">
|
||||||
系统:@#server.Host.Platform#@-@#server.Host.PlatformVersion#@ [<span
|
系统:@#server.Host.Platform#@-@#server.Host.PlatformVersion#@ [<span
|
||||||
v-if='server.Host.Virtualization'>@#server.Host.Virtualization#@:</span>@#server.Host.Arch#@]<br>
|
v-if='server.Host.Virtualization'>@#server.Host.Virtualization#@:</span>@#server.Host.Arch#@]<br>
|
||||||
|
CPU:@#server.Host.CPU#@<br>
|
||||||
硬盘:@#formatByteSize(server.State.DiskUsed)#@/@#formatByteSize(server.Host.DiskTotal)#@<br>
|
硬盘:@#formatByteSize(server.State.DiskUsed)#@/@#formatByteSize(server.Host.DiskTotal)#@<br>
|
||||||
内存:@#formatByteSize(server.State.MemUsed)#@/@#formatByteSize(server.Host.MemTotal)#@<br>
|
内存:@#formatByteSize(server.State.MemUsed)#@/@#formatByteSize(server.Host.MemTotal)#@<br>
|
||||||
交换:@#formatByteSize(server.State.SwapUsed)#@/@#formatByteSize(server.Host.SwapTotal)#@<br>
|
交换:@#formatByteSize(server.State.SwapUsed)#@/@#formatByteSize(server.Host.SwapTotal)#@<br>
|
||||||
|
@ -34,7 +34,7 @@ var CronLock sync.RWMutex
|
|||||||
var Crons map[uint64]*model.Cron
|
var Crons map[uint64]*model.Cron
|
||||||
var Cron *cron.Cron
|
var Cron *cron.Cron
|
||||||
|
|
||||||
var Version = "v0.3.0"
|
var Version = "v0.3.1"
|
||||||
|
|
||||||
func ReSortServer() {
|
func ReSortServer() {
|
||||||
ServerLock.RLock()
|
ServerLock.RLock()
|
||||||
|
Loading…
Reference in New Issue
Block a user