Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
39ae232a
Commit
39ae232a
authored
Jan 19, 2017
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return int for minutes when calculated from seconds
parent
08dc2c7c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/models/namespace_statistics.rb
app/models/namespace_statistics.rb
+1
-1
app/models/project_statistics.rb
app/models/project_statistics.rb
+1
-1
No files found.
app/models/namespace_statistics.rb
View file @
39ae232a
...
...
@@ -4,6 +4,6 @@ class NamespaceStatistics < ActiveRecord::Base
validates
:namespace
,
presence:
true
def
shared_runners_minutes
shared_runners_seconds
.
to_i
/
60
.0
shared_runners_seconds
.
to_i
/
60
end
end
app/models/project_statistics.rb
View file @
39ae232a
...
...
@@ -8,7 +8,7 @@ class ProjectStatistics < ActiveRecord::Base
STATISTICS_COLUMNS
=
[
:commit_count
]
+
STORAGE_COLUMNS
def
shared_runners_minutes
shared_runners_seconds
.
to_i
/
60
.0
shared_runners_seconds
.
to_i
/
60
end
def
total_repository_size
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment