Usage: Round messages to 1K, files to 100MB (#20603)

Этот коммит содержится в:
Nathaniel Allred
2022-07-11 07:21:29 -05:00
коммит произвёл GitHub
родитель 662248291e
Коммит f639122376
5 изменённых файлов: 164 добавлений и 3 удалений

Просмотреть файл

@@ -49,7 +49,7 @@ func (a *App) GetPostsUsage() (int64, *model.AppError) {
return 0, model.NewAppError("GetPostsUsage", "app.post.analytics_posts_count.app_error", nil, err.Error(), http.StatusInternalServerError)
}
return utils.RoundOffToZeroes(float64(count)), nil
return utils.RoundOffToZeroesResolution(float64(count), 3), nil
}
// GetStorageUsage returns the sum of files' sizes stored on this instance