diff options
author | Rémy Coutable <remy@rymai.me> | 2017-01-18 16:00:57 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-01-18 16:00:57 +0000 |
commit | 7c7b20417fa45c54d3fce9aaac2042a8964325d9 (patch) | |
tree | 7f614efb5826c9b11cbdb05574bc04e082facf42 /app | |
parent | 52e652cbe727f0afc48c74330e6bef72712effad (diff) | |
parent | 4bb3675b7d48e5215b63b3e94063188b719c59ea (diff) | |
download | gitlab-ce-7c7b20417fa45c54d3fce9aaac2042a8964325d9.tar.gz |
Merge branch '26773-fix-project-statistics-repository-size' into 'master'
Resolve "Wrong file size on repository page"
Closes #26773
See merge request !8616
Diffstat (limited to 'app')
-rw-r--r-- | app/models/project_statistics.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/project_statistics.rb b/app/models/project_statistics.rb index 2270ac75071..06abd406523 100644 --- a/app/models/project_statistics.rb +++ b/app/models/project_statistics.rb @@ -25,8 +25,9 @@ class ProjectStatistics < ActiveRecord::Base self.commit_count = project.repository.commit_count end + # Repository#size needs to be converted from MB to Byte. def update_repository_size - self.repository_size = project.repository.size + self.repository_size = project.repository.size * 1.megabyte end def update_lfs_objects_size |