X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Fcall.go;h=034ba286884496da6f2a7384ef6c18e0652ded22;hb=1d2ce674b042d07fd9b37a46578c8b62bb0345b7;hp=fd57bd1f283eaca0985adfc0e1bb8c4b9ff4ef01;hpb=b2e36aeaa5dc1c9649c6895d938208d92ddc3fa3;p=nncp.git diff --git a/src/call.go b/src/call.go index fd57bd1..034ba28 100644 --- a/src/call.go +++ b/src/call.go @@ -19,7 +19,6 @@ package nncp import ( "net" - "strconv" "github.com/gorhill/cronexpr" ) @@ -77,17 +76,17 @@ func (ctx *Ctx) CallNode( state.Wait() ctx.LogI("call-finish", SDS{ "node": state.Node.Id, - "duration": strconv.FormatInt(int64(state.Duration.Seconds()), 10), - "rxbytes": strconv.FormatInt(state.RxBytes, 10), - "txbytes": strconv.FormatInt(state.TxBytes, 10), - "rxspeed": strconv.FormatInt(state.RxSpeed, 10), - "txspeed": strconv.FormatInt(state.TxSpeed, 10), + "duration": int64(state.Duration.Seconds()), + "rxbytes": state.RxBytes, + "txbytes": state.TxBytes, + "rxspeed": state.RxSpeed, + "txspeed": state.TxSpeed, }, "") isGood = true conn.Close() break } else { - ctx.LogE("call-start", SdsAdd(sds, SDS{"err": err}), "") + ctx.LogE("call-start", sds, err, "") conn.Close() } }