Commit 39ae232a authored by Kamil Trzcinski's avatar Kamil Trzcinski

Return int for minutes when calculated from seconds

parent 08dc2c7c
...@@ -4,6 +4,6 @@ class NamespaceStatistics < ActiveRecord::Base ...@@ -4,6 +4,6 @@ class NamespaceStatistics < ActiveRecord::Base
validates :namespace, presence: true validates :namespace, presence: true
def shared_runners_minutes def shared_runners_minutes
shared_runners_seconds.to_i / 60.0 shared_runners_seconds.to_i / 60
end end
end end
...@@ -8,7 +8,7 @@ class ProjectStatistics < ActiveRecord::Base ...@@ -8,7 +8,7 @@ class ProjectStatistics < ActiveRecord::Base
STATISTICS_COLUMNS = [:commit_count] + STORAGE_COLUMNS STATISTICS_COLUMNS = [:commit_count] + STORAGE_COLUMNS
def shared_runners_minutes def shared_runners_minutes
shared_runners_seconds.to_i / 60.0 shared_runners_seconds.to_i / 60
end end
def total_repository_size def total_repository_size
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment