️ 优化Agent体积和逻辑

This commit is contained in:
naiba
2021-07-09 00:01:58 +08:00
parent e08585b4aa
commit 42b6768979
3 changed files with 15 additions and 18 deletions

View File

@@ -14,9 +14,9 @@ import (
"github.com/shirou/gopsutil/v3/net"
"github.com/naiba/nezha/model"
"github.com/naiba/nezha/service/dao"
)
var Version string = "debug"
var netInSpeed, netOutSpeed, netInTransfer, netOutTransfer, lastUpdate uint64
var expectDiskFsTypes = []string{
"apfs", "ext4", "ext3", "ext2", "f2fs", "reiserfs", "jfs", "btrfs", "fuseblk", "zfs", "simfs", "ntfs", "fat32", "exfat", "xfs",
@@ -59,7 +59,7 @@ func GetHost() *model.Host {
BootTime: hi.BootTime,
IP: cachedIP,
CountryCode: strings.ToLower(cachedCountry),
Version: dao.Version,
Version: Version,
}
}