parent
1e74f319ef
commit
80afc7d162
3 changed files with 26 additions and 2 deletions
|
|
@ -11,6 +11,9 @@ define(function () {
|
|||
var totalClients = sum(d.nodes.all.filter(online).map( function (d) {
|
||||
return d.statistics.clients
|
||||
}))
|
||||
var totalGateways = sum(d.nodes.all.filter(online).filter( function (d) {
|
||||
return d.flags.gateway
|
||||
}).map(one))
|
||||
|
||||
var nodetext = [{ count: totalOnlineNodes, label: "online" },
|
||||
{ count: totalNewNodes, label: "neu" },
|
||||
|
|
@ -20,8 +23,9 @@ define(function () {
|
|||
.join(", ")
|
||||
|
||||
stats.textContent = totalNodes + " Knoten " +
|
||||
"(" + nodetext + ") mit " +
|
||||
totalClients + " Client" + ( totalClients === 1 ? "" : "s" )
|
||||
"(" + nodetext + "), " +
|
||||
totalClients + " Client" + ( totalClients === 1 ? ", " : "s, " ) +
|
||||
totalGateways + " Gateways"
|
||||
|
||||
timestamp.textContent = "Diese Daten sind von " + d.timestamp.format("LLLL") + "."
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue