diff --git a/cmd/syncthing/usage_report.go b/cmd/syncthing/usage_report.go index f7db1c36..0ff02dcb 100644 --- a/cmd/syncthing/usage_report.go +++ b/cmd/syncthing/usage_report.go @@ -79,7 +79,8 @@ func reportData(cfg configIntf, m modelIntf, connectionsService connectionsIntf, var rescanIntvs []int folderUses := map[string]int{ - "readonly": 0, + "sendonly": 0, + "sendreceive": 0, "ignorePerms": 0, "ignoreDelete": 0, "autoNormalize": 0, @@ -91,8 +92,11 @@ func reportData(cfg configIntf, m modelIntf, connectionsService connectionsIntf, for _, cfg := range cfg.Folders() { rescanIntvs = append(rescanIntvs, cfg.RescanIntervalS) - if cfg.Type == config.FolderTypeSendOnly { - folderUses["readonly"]++ + switch cfg.Type { + case config.FolderTypeSendOnly: + folderUses["sendonly"]++ + case config.FolderTypeSendReceive: + folderUses["sendreceive"]++ } if cfg.IgnorePerms { folderUses["ignorePerms"]++ diff --git a/gui/default/index.html b/gui/default/index.html index 5af082b9..7175d34d 100644 --- a/gui/default/index.html +++ b/gui/default/index.html @@ -274,7 +274,7 @@