Release with GoReleaser. Allow start without key configuration (#788)

This commit is contained in:
David Zhao
2022-06-26 12:27:43 -07:00
committed by GitHub
parent e5f53a0d21
commit b316698409
8 changed files with 192 additions and 59 deletions
+1 -3
View File
@@ -214,9 +214,7 @@ func (s *StreamTracker) BitrateTemporalCumulative() []int64 {
// copy and process
brs := make([]int64, len(s.bitrate))
for i := 0; i < len(s.bitrate); i++ {
brs[i] = s.bitrate[i]
}
copy(brs, s.bitrate[:])
for i := len(brs) - 1; i >= 1; i-- {
if brs[i] != 0 {
@@ -1,5 +1,4 @@
//go:build !linux
// +build !linux
package prometheus