commit e9b5ffe82fd56d8ade8691af3f8ab2a7e8ffc7c9
parent 9038e625cee250d56df3ad8f1de2864ee72160dd
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Mon, 30 Jan 2023 15:53:06 -0800
better stats
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/dkfupload/main.go b/cmd/dkfupload/main.go
@@ -61,7 +61,7 @@ func main() {
offset := int64(chunkNum) * maxChunkSize
buf := make([]byte, maxChunkSize)
n, _ := f.ReadAt(buf, offset)
- log.Printf("Thread #%03d | chunk #%03d | read %d | from %d to %d\n", i, chunkNum, n, offset, offset+maxChunkSize)
+ log.Printf("Thread #%03d | chunk #%03d | read %d | from %d to %d\n", i, chunkNum, n, offset, offset+int64(n))
if !dry {
// TODO: http post the chunk to server
}