]> Cypherpunks.ru repositories - govpn.git/blobdiff - src/cypherpunks.ru/govpn/client/client.go
Print seconds, not microseconds
[govpn.git] / src / cypherpunks.ru / govpn / client / client.go
index e722a7fc54ab7321bce5805512f69cb3d8e496ff..5a745c1d99c06fbe130916e032c47c40d6e6b696 100644 (file)
@@ -129,7 +129,7 @@ MainCycle:
                        if c.config.NoReconnect {
                                break MainCycle
                        }
-                       govpn.BothPrintf(`[sleep seconds="%d"]`, c.config.Peer.Timeout)
+                       govpn.BothPrintf(`[sleep seconds="%d"]`, c.config.Peer.Timeout/time.Second)
                        time.Sleep(c.config.Peer.Timeout)
                case <-c.rehandshaking:
                }