Skip to content

Commit 3a5051b

Browse files
committed
feat: 添加采集时间
1 parent b385ab2 commit 3a5051b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

helper/psutil/def.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
)
66

77
type SummaryStat struct {
8+
CreateAt int64
89
HostId string
910
HostName string
1011
Uptime uint64

helper/psutil/systat.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ func Summary() *SummaryStat {
1919
mv, _ := mem.VirtualMemory()
2020

2121
return &SummaryStat{
22+
CreateAt: time.Now().Unix(),
2223
HostId: hi.HostID,
2324
HostName: hi.Hostname,
2425
Uptime: hi.Uptime,

0 commit comments

Comments
 (0)