Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-boot-admin
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
spring-boot-admin
Commits
53300b78
Commit
53300b78
authored
Feb 04, 2018
by
Johannes Edmeier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adapt to micrometer changes for GC stats
parent
98803b81
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
details-gc.vue
.../src/main/frontend/views/instances/details/details-gc.vue
+13
-4
No files found.
spring-boot-admin-server-ui/src/main/frontend/views/instances/details/details-gc.vue
View file @
53300b78
...
...
@@ -35,7 +35,13 @@
<div
class=
"level-item has-text-centered"
>
<div>
<p
class=
"heading"
>
Total time spent
</p>
<p
v-text=
"`$
{current.totalTime.asSeconds()}s`">
</p>
<p
v-text=
"`$
{current.total_time.asSeconds()}s`">
</p>
</div>
</div>
<div
class=
"level-item has-text-centered"
>
<div>
<p
class=
"heading"
>
Max time spent
</p>
<p
v-text=
"`$
{current.max.asSeconds()}s`">
</p>
</div>
</div>
</div>
...
...
@@ -46,7 +52,6 @@
<
script
>
import
subscribing
from
'@/mixins/subscribing'
;
import
{
Observable
}
from
'@/utils/rxjs'
;
import
_
from
'lodash'
;
import
moment
from
'moment'
;
export
default
{
...
...
@@ -71,10 +76,14 @@
const
measurements
=
response
.
data
.
measurements
.
reduce
(
(
current
,
measurement
)
=>
({
...
current
,
[
_
.
lowerFirst
(
measurement
.
statistic
)]:
measurement
.
value
[
measurement
.
statistic
.
toLowerCase
(
)]:
measurement
.
value
}),
{}
);
return
{...
measurements
,
totalTime
:
moment
.
duration
(
Math
.
round
(
measurements
.
totalTime
/
1000
))};
return
{
...
measurements
,
total_time
:
moment
.
duration
(
Math
.
round
(
measurements
.
total_time
*
1000
)),
max
:
moment
.
duration
(
Math
.
round
(
measurements
.
max
*
1000
)),
};
},
createSubscription
()
{
const
vm
=
this
;
...
...
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