]> Cypherpunks.ru repositories - govpn.git/blobdiff - src/govpn/common.go
Move cprCycleCalculate to peer.go, as it is the only user of it
[govpn.git] / src / govpn / common.go
index b453ed9be791a0295b49b5dadbee15cab1754bb5..cb2f315b6ee5f89c8691e1873179a397ab1e4838 100644 (file)
@@ -23,7 +23,6 @@ import (
        "os"
        "os/exec"
        "runtime"
-       "time"
 )
 
 const (
@@ -64,10 +63,3 @@ func SliceZero(data []byte) {
 func VersionGet() string {
        return "GoVPN version " + Version + " built with " + runtime.Version()
 }
-
-func cprCycleCalculate(rate int) time.Duration {
-       if rate == 0 {
-               return time.Duration(0)
-       }
-       return time.Second / time.Duration(rate*(1<<10)/MTUMax)
-}