diff options
Diffstat (limited to 'app/workers/container_expiration_policies/cleanup_container_repository_worker.rb')
-rw-r--r-- | app/workers/container_expiration_policies/cleanup_container_repository_worker.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/workers/container_expiration_policies/cleanup_container_repository_worker.rb b/app/workers/container_expiration_policies/cleanup_container_repository_worker.rb index 69f5906f54c..7f7a77d0524 100644 --- a/app/workers/container_expiration_policies/cleanup_container_repository_worker.rb +++ b/app/workers/container_expiration_policies/cleanup_container_repository_worker.rb @@ -159,7 +159,10 @@ module ContainerExpirationPolicies return unless tags_count && cached_tags_count && tags_count != 0 - log_extra_metadata_on_done(:cleanup_tags_service_cache_hit_ratio, cached_tags_count / tags_count.to_f) + ratio = cached_tags_count / tags_count.to_f + ratio_as_percentage = (ratio * 100).round(2) + + log_extra_metadata_on_done(:cleanup_tags_service_cache_hit_ratio, ratio_as_percentage) end def log_truncate(result) |