Bandwidth tracking
This commit is contained in:
@@ -37,6 +37,7 @@ type ConfigInterface interface {
|
||||
ShouldCacheNetworkTestResults() bool
|
||||
ShouldForceIPv6() bool
|
||||
ShouldIgnoreRenames() bool
|
||||
ShouldLogRequests() bool
|
||||
ShouldServeFromRclone() bool
|
||||
}
|
||||
|
||||
@@ -54,6 +55,7 @@ type ZurgConfig struct {
|
||||
ForceIPv6 bool `yaml:"force_ipv6" json:"force_ipv6"`
|
||||
Host string `yaml:"host" json:"host"`
|
||||
IgnoreRenames bool `yaml:"ignore_renames" json:"ignore_renames"`
|
||||
LogRequests bool `yaml:"log_requests" json:"log_requests"`
|
||||
NetworkBufferSize int `yaml:"network_buffer_size" json:"network_buffer_size"`
|
||||
NumberOfHosts int `yaml:"number_of_hosts" json:"number_of_hosts"`
|
||||
NumOfWorkers int `yaml:"concurrent_workers" json:"concurrent_workers"`
|
||||
@@ -229,3 +231,7 @@ func (z *ZurgConfig) ShouldAutoAnalyzeNewTorrents() bool {
|
||||
func (z *ZurgConfig) ShouldCacheNetworkTestResults() bool {
|
||||
return z.CacheNetworkTestResults
|
||||
}
|
||||
|
||||
func (z *ZurgConfig) ShouldLogRequests() bool {
|
||||
return z.LogRequests
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user