]> Cypherpunks.ru repositories - nncp.git/commitdiff
Correctly show seconds
authorSergey Matveev <stargrave@stargrave.org>
Tue, 29 Jun 2021 18:04:46 +0000 (21:04 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Tue, 29 Jun 2021 19:00:24 +0000 (22:00 +0300)
src/call.go
src/cmd/nncp-daemon/main.go

index 6fc6045d4371ce15144a9aea7579646b4586c319..a201825f82358777700b3af793a9f4905526debd 100644 (file)
@@ -110,7 +110,7 @@ func (ctx *Ctx) CallNode(
                                        node.Name,
                                        int(state.Duration.Hours()),
                                        int(state.Duration.Minutes()),
-                                       int(state.Duration.Seconds()),
+                                       int(state.Duration.Seconds()/60),
                                        humanize.IBytes(uint64(state.RxBytes)),
                                        humanize.IBytes(uint64(state.RxSpeed)),
                                        humanize.IBytes(uint64(state.TxBytes)),
index 75fd40b8bb9a6136c42a903657efe6e3368c9b01..3d52dcc710ee9b4f3c7f43cb1f1b4f2a05f49b8e 100644 (file)
@@ -102,7 +102,7 @@ func performSP(
                                state.Node.Name,
                                int(state.Duration.Hours()),
                                int(state.Duration.Minutes()),
-                               int(state.Duration.Seconds()),
+                               int(state.Duration.Seconds()/60),
                                humanize.IBytes(uint64(state.RxBytes)),
                                humanize.IBytes(uint64(state.RxSpeed)),
                                humanize.IBytes(uint64(state.TxBytes)),