From: Sergey Matveev Date: Sat, 10 Dec 2016 19:35:58 +0000 (+0300) Subject: Print seconds, not microseconds X-Git-Tag: 7.1^2~19 X-Git-Url: http://www.git.cypherpunks.ru/?p=govpn.git;a=commitdiff_plain;h=05525a35e6d8bd08ea7684dbbf01f5d5636613ec;hp=7812f1aca5de73e04ceec6a570772785ed7a8b0d Print seconds, not microseconds --- diff --git a/src/cypherpunks.ru/govpn/client/client.go b/src/cypherpunks.ru/govpn/client/client.go index e722a7f..5a745c1 100644 --- a/src/cypherpunks.ru/govpn/client/client.go +++ b/src/cypherpunks.ru/govpn/client/client.go @@ -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: }