]> Cypherpunks.ru repositories - nncp.git/commitdiff
Convert duration explicitly to integer, for beauty logs
authorSergey Matveev <stargrave@stargrave.org>
Sat, 21 Dec 2019 20:19:34 +0000 (23:19 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 22 Dec 2019 18:13:04 +0000 (21:13 +0300)
src/cmd/nncp-daemon/main.go

index 9405fd2157ca7f9fbb5da54351e093b8f13ab136..42a021727398242a36b0f76c21e5d8a1b27db925 100644 (file)
@@ -72,7 +72,7 @@ func performSP(ctx *nncp.Ctx, conn nncp.ConnDeadlined, nice uint8) {
                state.Wait()
                ctx.LogI("call-finish", nncp.SDS{
                        "node":     state.Node.Id,
-                       "duration": state.Duration.Seconds(),
+                       "duration": int64(state.Duration.Seconds()),
                        "rxbytes":  state.RxBytes,
                        "txbytes":  state.TxBytes,
                        "rxspeed":  state.RxSpeed,