mirror of
https://github.com/syncthing/syncthing.git
synced 2026-10-05 18:51:30 -04:00
Makes the metrics easier to interpret. Signed-off-by: Jakob Borg <jakob@kastelo.net>
This commit is contained in:
1 parent
9bb5f9b4dd
commit
9cdff04877
1 file changed
+5
@@ -827,6 +827,11 @@ func (s *service) logListenAddressesChangedEvent(l ListenerAddresses) {
|
||||
func (s *service) CommitConfiguration(from, to config.Configuration) bool {
|
||||
newDevices := make(map[protocol.DeviceID]bool, len(to.Devices))
|
||||
for _, dev := range to.Devices {
|
||||
if dev.DeviceID == s.myID {
|
||||
// Do not report connection metrics for ourselves
|
||||
continue
|
||||
}
|
||||
|
||||
newDevices[dev.DeviceID] = true
|
||||
registerDeviceMetrics(dev.DeviceID.String())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user