mirror of
https://github.com/status-im/whispervis.git
synced 2025-02-01 16:04:56 +00:00
15 lines
321 B
Go
15 lines
321 B
Go
package main
|
|
|
|
import (
|
|
"github.com/status-im/simulation/propagation"
|
|
"github.com/status-im/simulation/stats"
|
|
)
|
|
|
|
func (p *Page) RecalculateStats(plog *propagation.Log) *stats.Stats {
|
|
net := p.network.Current()
|
|
nodes := len(net.Data.Nodes())
|
|
links := len(net.Data.Links())
|
|
|
|
return stats.Analyze(plog, nodes, links)
|
|
}
|