Inlcude the size of trace artifacts

This commit is contained in:
Shinya Maeda 2018-01-25 23:04:53 +09:00
parent 8a89efd87a
commit 14d1715610
1 changed files with 1 additions and 2 deletions

View File

@ -39,7 +39,6 @@ module ArtifactMigratable
end
def artifacts_size
read_attribute(:artifacts_size).to_i +
job_artifacts_archive&.size.to_i + job_artifacts_metadata&.size.to_i
read_attribute(:artifacts_size).to_i + job_artifacts.sum(:size).to_i
end
end