mirror of
https://github.com/fosrl/gerbil.git
synced 2026-02-25 14:26:42 +00:00
Add entrypoint script
This commit is contained in:
2
main.go
2
main.go
@@ -399,7 +399,7 @@ func periodicBandwidthCheck(endpoint string) {
|
||||
}
|
||||
}
|
||||
|
||||
func calculatePeerBandwidth() ([]PeerBandwidth, error) {
|
||||
func calculatePeerBandwidth() ([]PeerBandwidth, error) { //TODO: fix this to actually only report the change in bandwidth from the last query
|
||||
device, err := wgClient.Device(interfaceName)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to get device: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user