Skip to content
Snippets Groups Projects
Commit 5927fd66 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-status-page: filter out duplicate events in statistics event stream

Allows simple handling of cached events.
parent 38477d5c
No related branches found
No related tags found
No related merge requests found
...@@ -55,7 +55,7 @@ define(["bacon", "lib/helper"], function(Bacon, Helper) { ...@@ -55,7 +55,7 @@ define(["bacon", "lib/helper"], function(Bacon, Helper) {
function statistics(ip) { function statistics(ip) {
var url = Helper.buildUrl(ip, "dyn/statistics") var url = Helper.buildUrl(ip, "dyn/statistics")
return simpleStream(url) return simpleStream(url).skipDuplicates(function (a, b) {return (a.uptime === b.uptime)})
} }
return { nodeInfo: nodeInfo return { nodeInfo: nodeInfo
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment