Compare commits

..

2 Commits

Author SHA1 Message Date
Stefan Schwarz fed9a89d9d fix current marker\n\nupdate when a mod is replaces, should be the newest
continuous-integration/drone/push Build is passing Details
2020-12-28 11:31:54 +01:00
Stefan Schwarz 578160db28 increase tracked values to 50 2020-12-28 11:30:32 +01:00
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ import (
"github.com/docker/docker/client" "github.com/docker/docker/client"
) )
const COUNTER_SLOTS = 20 const COUNTER_SLOTS = 50
func main() { func main() {
containerName, ok := os.LookupEnv("CONTAINER_NAME") containerName, ok := os.LookupEnv("CONTAINER_NAME")
@ -92,8 +92,8 @@ func (c *Counter) countViewers(part string) {
if c.names[mod] != part { if c.names[mod] != part {
c.counters[mod] = 0 c.counters[mod] = 0
}
c.current = i c.current = i
}
c.counters[mod] += 1 c.counters[mod] += 1
c.names[mod] = part c.names[mod] = part
} }