diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-18 03:56:27 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-18 04:51:02 +0200 |
commit | 52d797ce1ab590a7988edcbe13ce7ca31ab7c4ef (patch) | |
tree | bba8f63a1f76bd9ac96f2582530fc9dc4fc3d311 /device.go | |
parent | 711f929879405cf6f4da54bce45858ab713a576b (diff) |
Style
Diffstat (limited to 'device.go')
-rw-r--r-- | device.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -14,7 +14,7 @@ import ( ) const ( - DeviceRoutineNumberPerCPU = 3 + DeviceRoutineNumberPerCPU = 3 DeviceRoutineNumberAdditional = 2 ) @@ -301,8 +301,8 @@ func NewDevice(tun TUNDevice, logger *Logger) *Device { cpus := runtime.NumCPU() device.state.starting.Wait() device.state.stopping.Wait() - device.state.stopping.Add(DeviceRoutineNumberPerCPU * cpus + DeviceRoutineNumberAdditional) - device.state.starting.Add(DeviceRoutineNumberPerCPU * cpus + DeviceRoutineNumberAdditional) + device.state.stopping.Add(DeviceRoutineNumberPerCPU*cpus + DeviceRoutineNumberAdditional) + device.state.starting.Add(DeviceRoutineNumberPerCPU*cpus + DeviceRoutineNumberAdditional) for i := 0; i < cpus; i += 1 { go device.RoutineEncryption() go device.RoutineDecryption() |