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

Allows simple handling of cached events.
This commit is contained in:
Matthias Schiffer 2015-12-12 20:48:19 +01:00
parent 38477d5c0c
commit 5927fd66db
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ define(["bacon", "lib/helper"], function(Bacon, Helper) {
function statistics(ip) {
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