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
0b24e0da
Commit
0b24e0da
authored
Jul 18, 2014
by
Thomas Bosch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better uptime
parent
8635d185
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
filters.js
src/main/webapp/public/scripts/filters/filters.js
+13
-0
metrics.html
src/main/webapp/public/views/apps/details/metrics.html
+1
-1
No files found.
src/main/webapp/public/scripts/filters/filters.js
View file @
0b24e0da
...
@@ -5,4 +5,16 @@ angular.module('springBootAdmin')
...
@@ -5,4 +5,16 @@ angular.module('springBootAdmin')
return
function
(
input
)
{
return
function
(
input
)
{
return
Math
.
ceil
(
input
);
return
Math
.
ceil
(
input
);
}
}
})
.
filter
(
'floor'
,
function
()
{
return
function
(
input
)
{
return
Math
.
floor
(
input
);
}
})
.
filter
(
'padZero'
,
function
()
{
return
function
(
input
)
{
var
s
=
input
+
""
;
while
(
s
.
length
<
2
)
s
=
"0"
+
s
;
return
s
;
}
});
});
\ No newline at end of file
src/main/webapp/public/views/apps/details/metrics.html
View file @
0b24e0da
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<td>
{{ application.metrics['heap.used'] / 1024 | number:2 }} MB
</td>
<td>
{{ application.metrics['heap.used'] / 1024 | number:2 }} MB
</td>
<td>
{{ application.metrics['heap'] / 1024 | number:2 }} MB
</td>
<td>
{{ application.metrics['heap'] / 1024 | number:2 }} MB
</td>
<td>
{{ application.metrics['processors'] }}
</td>
<td>
{{ application.metrics['processors'] }}
</td>
<td>
{{ application.metrics['uptime'] /
60000 | ceil }}:{{ application.metrics['uptime'] % 60000 / 1000 | ceil }} min
</td>
<td>
{{ application.metrics['uptime'] /
86400000 | floor | padZero }}:{{ application.metrics['uptime'] % 86400000 / 3600000 | floor | padZero }}:{{ application.metrics['uptime'] % 3600000 / 60000 | floor | padZero }}:{{ application.metrics['uptime'] % 60000 / 1000 | floor | padZero }} [d:h:m:s]
</td>
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
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