fixes
This commit is contained in:
parent
b17efe43b4
commit
49b78d12ce
|
|
@ -4,8 +4,6 @@ go:
|
||||||
before_install:
|
before_install:
|
||||||
# download super-linter: golangci-lint
|
# 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
|
- 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:
|
script:
|
||||||
- golangci-lint run --enable-all -e G402 -D gochecknoinits -D funlen
|
|
||||||
- go test ./...
|
- go test ./...
|
||||||
|
- golangci-lint run --enable-all -e G402 -D gochecknoinits -D funlen
|
||||||
|
|
|
||||||
|
|
@ -127,15 +127,18 @@ func reportClientDPItotals(r report, appTotal, catTotal totalsDPImap) {
|
||||||
val 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.
|
// This can allow us to aggregate other data types later, like `name` or `mac`, or anything else unifi adds.
|
||||||
a := all{
|
a := all{
|
||||||
/*
|
// This produces 7000+ metrics per site. Disabled for now.
|
||||||
// This produces 7000+ metrics per site. Disabled for now.
|
{
|
||||||
{
|
kind: "application",
|
||||||
kind: "application",
|
val: appTotal,
|
||||||
val: appTotal,
|
},
|
||||||
},
|
|
||||||
*/
|
|
||||||
{
|
{
|
||||||
kind: "category",
|
kind: "category",
|
||||||
val: catTotal,
|
val: catTotal,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue