This commit is contained in:
davidnewhall2 2020-02-01 19:09:04 -08:00
parent b17efe43b4
commit 49b78d12ce
2 changed files with 11 additions and 10 deletions

View File

@ -4,8 +4,6 @@ go:
before_install:
# download super-linter: golangci-lint
- curl -sL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin latest
install:
- go mod download
script:
- golangci-lint run --enable-all -e G402 -D gochecknoinits -D funlen
- go test ./...
- golangci-lint run --enable-all -e G402 -D gochecknoinits -D funlen

View File

@ -127,15 +127,18 @@ func reportClientDPItotals(r report, appTotal, catTotal totalsDPImap) {
val totalsDPImap
}
// This produces 7000+ metrics per site. Disabled for now.
if appTotal != nil {
appTotal = nil
}
// This can allow us to aggregate other data types later, like `name` or `mac`, or anything else unifi adds.
a := all{
/*
// This produces 7000+ metrics per site. Disabled for now.
{
kind: "application",
val: appTotal,
},
*/
// This produces 7000+ metrics per site. Disabled for now.
{
kind: "application",
val: appTotal,
},
{
kind: "category",
val: catTotal,