Ejemplo n.º 1
0
func setConfig(srpcClient *srpc.Client) error {
	var config sub.Configuration
	config.ScanSpeedPercent = *scanSpeedPercent
	config.NetworkSpeedPercent = *networkSpeedPercent
	config.ScanExclusionList = scanExcludeList
	return client.SetConfiguration(srpcClient, config)
}
Ejemplo n.º 2
0
func (t *rpcType) getConfiguration() sub.Configuration {
	var configuration sub.Configuration
	configuration.ScanSpeedPercent =
		t.scannerConfiguration.FsScanContext.GetContext().SpeedPercent()
	configuration.NetworkSpeedPercent =
		t.scannerConfiguration.NetworkReaderContext.SpeedPercent()
	configuration.ScanExclusionList =
		t.scannerConfiguration.ScanFilter.FilterLines
	return configuration
}