summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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()