Compare commits
2 Commits
ad6088c5f3
...
fed9a89d9d
Author | SHA1 | Date |
---|---|---|
Stefan Schwarz | fed9a89d9d | |
Stefan Schwarz | 578160db28 |
4
main.go
4
main.go
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue