From 4fc153e6be51fa08b98ca45704f84ea3cfb66afc Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Thu, 23 Mar 2023 13:04:33 +0300 Subject: [PATCH] Convenient time.Since() --- src/sp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sp.go b/src/sp.go index 115b39e..3bef9c3 100644 --- a/src/sp.go +++ b/src/sp.go @@ -1119,7 +1119,7 @@ func (state *SPState) Wait() bool { state.wg.Wait() close(state.payloads) close(state.pings) - state.Duration = time.Now().Sub(state.started) + state.Duration = time.Since(state.started) state.dirUnlock() state.RxSpeed = state.RxBytes state.TxSpeed = state.TxBytes -- 2.44.0