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
de4c510a
Commit
de4c510a
authored
Mar 31, 2016
by
Johannes Edmeier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix refresh trace view showing duplicates
fixes #175
parent
62c665a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
16 deletions
+9
-16
traceCtrl.js
...-boot-admin-server-ui/app/js/controller/apps/traceCtrl.js
+9
-16
No files found.
spring-boot-admin-server-ui/app/js/controller/apps/traceCtrl.js
View file @
de4c510a
...
...
@@ -16,27 +16,20 @@
'use strict'
;
module
.
exports
=
function
(
$scope
,
application
,
$interval
)
{
$scope
.
lastTraceTime
=
0
;
$scope
.
traces
=
[];
$scope
.
refresher
=
null
;
$scope
.
refreshInterval
=
5
;
$scope
.
refresh
=
function
()
{
application
.
getTraces
()
.
then
(
function
(
traces
)
{
for
(
var
i
=
0
;
i
<
traces
.
length
;
i
++
)
{
if
(
traces
[
i
].
timestamp
>
$scope
.
lastTraceTime
)
{
$scope
.
traces
.
push
(
traces
[
i
]);
}
}
if
(
traces
.
length
>
0
)
{
$scope
.
lastTraceTime
=
traces
[
traces
.
length
-
1
].
timestamp
;
}
})
.
catch
(
function
(
error
)
{
$scope
.
error
=
error
;
$scope
.
refresh
=
function
()
{
application
.
getTraces
().
then
(
function
(
traces
)
{
var
oldestTrace
=
traces
[
traces
.
length
-
1
];
var
olderTraces
=
$scope
.
traces
.
filter
(
function
(
trace
)
{
return
trace
.
timestamp
<
oldestTrace
.
timestamp
;
});
$scope
.
traces
=
traces
.
concat
(
olderTraces
);
}).
catch
(
function
(
error
)
{
$scope
.
error
=
error
;
});
};
$scope
.
toggleAutoRefresh
=
function
()
{
...
...
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