mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-13 00:36:28 +00:00
cmd/syncthing: Account receive only folders in usage report
This commit is contained in:
parent
9e00b619ab
commit
db0c85318b
@ -81,6 +81,7 @@ func reportData(cfg configIntf, m modelIntf, connectionsService connectionsIntf,
|
|||||||
folderUses := map[string]int{
|
folderUses := map[string]int{
|
||||||
"sendonly": 0,
|
"sendonly": 0,
|
||||||
"sendreceive": 0,
|
"sendreceive": 0,
|
||||||
|
"receiveonly": 0,
|
||||||
"ignorePerms": 0,
|
"ignorePerms": 0,
|
||||||
"ignoreDelete": 0,
|
"ignoreDelete": 0,
|
||||||
"autoNormalize": 0,
|
"autoNormalize": 0,
|
||||||
@ -97,6 +98,8 @@ func reportData(cfg configIntf, m modelIntf, connectionsService connectionsIntf,
|
|||||||
folderUses["sendonly"]++
|
folderUses["sendonly"]++
|
||||||
case config.FolderTypeSendReceive:
|
case config.FolderTypeSendReceive:
|
||||||
folderUses["sendreceive"]++
|
folderUses["sendreceive"]++
|
||||||
|
case config.FolderTypeReceiveOnly:
|
||||||
|
folderUses["receiveonly"]++
|
||||||
}
|
}
|
||||||
if cfg.IgnorePerms {
|
if cfg.IgnorePerms {
|
||||||
folderUses["ignorePerms"]++
|
folderUses["ignorePerms"]++
|
||||||
|
Loading…
Reference in New Issue
Block a user