summaryrefslogtreecommitdiffhomepage
path: root/device.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-05-18 03:56:27 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-05-18 04:51:02 +0200
commit52d797ce1ab590a7988edcbe13ce7ca31ab7c4ef (patch)
treebba8f63a1f76bd9ac96f2582530fc9dc4fc3d311 /device.go
parent711f929879405cf6f4da54bce45858ab713a576b (diff)
Style
Diffstat (limited to 'device.go')
-rw-r--r--device.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/device.go b/device.go
index 6e1bc94..6e693f9 100644
--- a/device.go
+++ b/device.go
@@ -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()