]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/call.go
Fix of the seconds display fix
[nncp.git] / src / call.go
index 648190f22856e45bbc437a1d2a49e54e8522fb1d..5af47807250674d7e9ae4595c097e6a8d6da531f 100644 (file)
@@ -110,7 +110,7 @@ func (ctx *Ctx) CallNode(
                                        node.Name,
                                        int(state.Duration.Hours()),
                                        int(state.Duration.Minutes()),
-                                       int(state.Duration.Seconds()/60),
+                                       int(state.Duration.Seconds())%60,
                                        humanize.IBytes(uint64(state.RxBytes)),
                                        humanize.IBytes(uint64(state.RxSpeed)),
                                        humanize.IBytes(uint64(state.TxBytes)),