mirror of
https://github.com/tiger1103/gfast.git
synced 2026-10-02 05:31:19 +00:00
Merge branch 'master' of http://git.qjit.cn/gfast-plugins/gfast-v3
This commit is contained in:
@@ -18,7 +18,7 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
var Monitor = &sysMonitorController{
|
||||
var Monitor = sysMonitorController{
|
||||
startTime: gtime.Now(),
|
||||
}
|
||||
|
||||
@@ -113,11 +113,11 @@ func (c *sysMonitorController) List(ctx context.Context, req *system.MonitorSear
|
||||
}
|
||||
}
|
||||
res = new(system.MonitorSearchRes)
|
||||
*res = system.MonitorSearchRes{
|
||||
res = &system.MonitorSearchRes{
|
||||
"cpuNum": cpuNum,
|
||||
"cpuUsed": cpuUsed,
|
||||
"cpuAvg5": cpuAvg5,
|
||||
"cpuAvg15": cpuAvg15,
|
||||
"cpuAvg5": gconv.String(cpuAvg5),
|
||||
"cpuAvg15": gconv.String(cpuAvg15),
|
||||
"memTotal": memTotal,
|
||||
"goTotal": goTotal,
|
||||
"memUsed": memUsed,
|
||||
|
||||
Reference in New Issue
Block a user