Compare commits

..

3 Commits

Author SHA1 Message Date
2cf3cfd961 chore(deps): update golangci/golangci-lint docker tag to v1.56.1
Some checks are pending
continuous-integration/drone/pr Build is pending
2024-02-12 14:05:22 +00:00
75eb878e33
fix(ci): use correct docker image
All checks were successful
continuous-integration/drone/push Build is passing
2024-02-12 14:24:51 +01:00
1ab6fef70a
fix(metrics): typo 2024-02-12 14:23:16 +01:00
2 changed files with 3 additions and 3 deletions

View File

@ -1216,7 +1216,7 @@ steps:
# - build # - build
- name: rename-unstable - name: rename-unstable
image: apline image: alpine
pull: true pull: true
commands: commands:
- cd desktop/dist - cd desktop/dist
@ -1389,6 +1389,6 @@ steps:
- failure - failure
--- ---
kind: signature kind: signature
hmac: ecafdfbeb29047bf6c3603cc186c106550184d8bbb6befe05d359f8b5c983ae0 hmac: ebaa2b225788f5ff23cc55be29bea1c6fef1507d2c8f8b0f4b927205ae3a3a63
... ...

View File

@ -69,7 +69,7 @@ func init() {
func setupActiveUsersMetric() { func setupActiveUsersMetric() {
err := registry.Register(promauto.NewGaugeFunc(prometheus.GaugeOpts{ err := registry.Register(promauto.NewGaugeFunc(prometheus.GaugeOpts{
Name: "vikunja_active_users", Name: "vikunja_active_users",
Help: "The number of shares active within the last 30 seconds", Help: "The number of users active within the last 30 seconds",
}, func() float64 { }, func() float64 {
allActiveUsers := activeUsersMap{} allActiveUsers := activeUsersMap{}
_, err := keyvalue.GetWithValue(activeUsersKey, &allActiveUsers) _, err := keyvalue.GetWithValue(activeUsersKey, &allActiveUsers)