|
@@ -60,9 +60,9 @@ type FolderConfiguration struct {
|
|
|
IgnorePerms bool `xml:"ignorePerms,attr"`
|
|
IgnorePerms bool `xml:"ignorePerms,attr"`
|
|
|
Versioning VersioningConfiguration `xml:"versioning"`
|
|
Versioning VersioningConfiguration `xml:"versioning"`
|
|
|
LenientMtimes bool `xml:"lenientMtimes"`
|
|
LenientMtimes bool `xml:"lenientMtimes"`
|
|
|
- Copiers int `xml:"copiers" default:"1"` // This defines how many files are handled concurrently.
|
|
|
|
|
- Pullers int `xml:"pullers" default:"16"` // Defines how many blocks are fetched at the same time, possibly between separate copier routines.
|
|
|
|
|
- Finishers int `xml:"finishers" default:"1"` // Most of the time, should be equal to the number of copiers. These are CPU bound due to hashing.
|
|
|
|
|
|
|
+ Copiers int `xml:"copiers" default:"1"` // This defines how many files are handled concurrently.
|
|
|
|
|
+ Pullers int `xml:"pullers" default:"16"` // Defines how many blocks are fetched at the same time, possibly between separate copier routines.
|
|
|
|
|
+ Hashers int `xml:"hashers" default:"0"` // Less than one sets the value to the number of cores. These are CPU bound due to hashing.
|
|
|
|
|
|
|
|
Invalid string `xml:"-"` // Set at runtime when there is an error, not saved
|
|
Invalid string `xml:"-"` // Set at runtime when there is an error, not saved
|
|
|
|
|
|
|
@@ -358,9 +358,6 @@ func (cfg *Configuration) prepare(myID protocol.DeviceID) {
|
|
|
if cfg.Folders[i].Pullers == 0 {
|
|
if cfg.Folders[i].Pullers == 0 {
|
|
|
cfg.Folders[i].Pullers = 16
|
|
cfg.Folders[i].Pullers = 16
|
|
|
}
|
|
}
|
|
|
- if cfg.Folders[i].Finishers == 0 {
|
|
|
|
|
- cfg.Folders[i].Finishers = 1
|
|
|
|
|
- }
|
|
|
|
|
sort.Sort(FolderDeviceConfigurationList(cfg.Folders[i].Devices))
|
|
sort.Sort(FolderDeviceConfigurationList(cfg.Folders[i].Devices))
|
|
|
}
|
|
}
|
|
|
|
|
|