diff options
author | Alessio Caiazza <acaiazza@gitlab.com> | 2019-06-10 15:44:50 +0000 |
---|---|---|
committer | Mayra Cabrera <mcabrera@gitlab.com> | 2019-06-10 15:44:50 +0000 |
commit | c699c6fe3ce0a0dffecfa380377fa44a6866a148 (patch) | |
tree | 079289e2a8c8ba98241ccb90674495eccecd01c5 /app | |
parent | de4e63b3fcec455549f69d604424c70205694e55 (diff) | |
download | gitlab-ce-c699c6fe3ce0a0dffecfa380377fa44a6866a148.tar.gz |
Fix nil coercion updating storage size on project statistics
Diffstat (limited to 'app')
-rw-r--r-- | app/models/project_statistics.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project_statistics.rb b/app/models/project_statistics.rb index 11e3737298c..8a179b4d56d 100644 --- a/app/models/project_statistics.rb +++ b/app/models/project_statistics.rb @@ -54,7 +54,7 @@ class ProjectStatistics < ApplicationRecord end def update_storage_size - self.storage_size = repository_size + wiki_size + lfs_objects_size + build_artifacts_size + packages_size + self.storage_size = repository_size + wiki_size.to_i + lfs_objects_size + build_artifacts_size + packages_size end # Since this incremental update method does not call update_storage_size above, |