🏷️ 增加对 f2fs 的统计

This commit is contained in:
naiba 2021-05-04 10:22:38 +08:00
parent fc0aee7c49
commit 947a4d5d82
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ import (
var netInSpeed, netOutSpeed, netInTransfer, netOutTransfer, lastUpdate uint64
var expectDiskFsTypes = []string{
"apfs", "ext4", "ext3", "ext2", "reiserfs", "jfs", "btrfs", "fuseblk", "zfs", "simfs", "ntfs", "fat32", "exfat", "xfs",
"apfs", "ext4", "ext3", "ext2", "f2fs", "reiserfs", "jfs", "btrfs", "fuseblk", "zfs", "simfs", "ntfs", "fat32", "exfat", "xfs",
}
var excludeNetInterfaces = []string{
"lo", "tun", "docker", "veth", "br-", "vmbr", "vnet", "kube",

View File

@ -79,7 +79,7 @@ func (oa *oauth2controller) callback(c *gin.Context) {
var client *GitHubAPI.Client
if err == nil {
oc := oauth2Config.Client(ctx, otk)
if dao.Conf.Oauth2.Type == "gitee" {
if dao.Conf.Oauth2.Type == model.ConfigTypeGitee {
client, err = GitHubAPI.NewEnterpriseClient("https://gitee.com/api/v5/", "https://gitee.com/api/v5/", oc)
} else {
client = GitHubAPI.NewClient(oc)