summaryrefslogtreecommitdiffstats
path: root/app/diagnostics.go
diff options
context:
space:
mode:
authorMartin Kraft <mkraft@users.noreply.github.com>2018-05-03 10:00:33 -0400
committerJesús Espino <jespinog@gmail.com>2018-05-03 16:00:33 +0200
commit14b65b990c7f67b66c3188b4120bf27fb1f24a2d (patch)
treee3fcdbe2f0ee366a7272458d6908fd32dbd514e5 /app/diagnostics.go
parent3b138c8b16668f17bfcd367d05b5f7846d185caf (diff)
downloadchat-14b65b990c7f67b66c3188b4120bf27fb1f24a2d.tar.gz
chat-14b65b990c7f67b66c3188b4120bf27fb1f24a2d.tar.bz2
chat-14b65b990c7f67b66c3188b4120bf27fb1f24a2d.zip
MM-10393: Fix for tracking active vs inactive users. (#8706)
Diffstat (limited to 'app/diagnostics.go')
-rw-r--r--app/diagnostics.go24
1 files changed, 12 insertions, 12 deletions
diff --git a/app/diagnostics.go b/app/diagnostics.go
index 6237f5f83..7dcea839e 100644
--- a/app/diagnostics.go
+++ b/app/diagnostics.go
@@ -138,7 +138,7 @@ func (a *App) trackActivity() {
activeUserCount = ucr.Data.(int64)
}
- if iucr := <-a.Srv.Store.Status().GetTotalActiveUsersCount(); iucr.Err == nil {
+ if iucr := <-a.Srv.Store.User().AnalyticsGetInactiveUsersCount(); iucr.Err == nil {
inactiveUserCount = iucr.Data.(int64)
}
@@ -171,17 +171,17 @@ func (a *App) trackActivity() {
}
a.SendDiagnostic(TRACK_ACTIVITY, map[string]interface{}{
- "registered_users": userCount,
- "active_users": activeUserCount,
- "registered_inactive_users": inactiveUserCount,
- "teams": teamCount,
- "public_channels": publicChannelCount,
- "private_channels": privateChannelCount,
- "direct_message_channels": directChannelCount,
- "public_channels_deleted": deletedPublicChannelCount,
- "private_channels_deleted": deletedPrivateChannelCount,
- "posts": postsCount,
- "used_apiv3": atomic.LoadInt32(model.UsedApiV3) == 1,
+ "registered_users": userCount,
+ "active_users": activeUserCount,
+ "registered_deactivated_users": inactiveUserCount,
+ "teams": teamCount,
+ "public_channels": publicChannelCount,
+ "private_channels": privateChannelCount,
+ "direct_message_channels": directChannelCount,
+ "public_channels_deleted": deletedPublicChannelCount,
+ "private_channels_deleted": deletedPrivateChannelCount,
+ "posts": postsCount,
+ "used_apiv3": atomic.LoadInt32(model.UsedApiV3) == 1,
})
atomic.StoreInt32(model.UsedApiV3, 0)