commit 710e26e0cdde0fc4b8075be090b4f13ddc93e418
parent f9e8882e6a5f369fa333916f17eb5c6ca9560df8
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Tue, 31 Jan 2023 01:24:29 -0800
fix time stats
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/cmd/dkfupload/main.go b/cmd/dkfupload/main.go
@@ -165,6 +165,7 @@ func work(i int, wg *sync.WaitGroup, chunksCh chan int64, isLocal, dry bool, max
logrus.Infof("Thread #%03d | chunk #%03d | read %d | from %d to %d\n", i, chunkNum, n, offset, offset+int64(n))
if !dry {
hasToSucceed(func() error {
+ start = time.Now()
body := new(bytes.Buffer)
w := multipart.NewWriter(body)
partFileName := fmt.Sprintf("part_%d", chunkNum)