Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sven Greiner
finf-ScalaAnnounceBot
Commits
a8cc8ddf
Commit
a8cc8ddf
authored
Aug 20, 2012
by
Sven Greiner
Browse files
Fix runtime formatting
parent
ef159da8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/scala/de/sammyshp/announcebot/RuntimeStats.scala
View file @
a8cc8ddf
...
...
@@ -18,8 +18,12 @@ class RuntimeStats {
}
def
runtimeString
=
{
val
rt
=
runtime
/
1000
;
"%dd %dh %dm %ds"
.
format
(
rt
/
86400
,
rt
/
3600
,
rt
/
60
,
rt
)
val
rt
=
runtime
/
1000
val
s
=
rt
%
60
val
m
=
(
rt
%
3600
)
/
60
val
h
=
(
rt
%
86400
)
/
3600
val
d
=
rt
/
86400
"%dd %dh %dm %ds"
.
format
(
d
,
h
,
m
,
s
)
}
def
announces
=
{
...
...
Write
Preview
Supports
Markdown
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