summaryrefslogtreecommitdiff
path: root/workers.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2023-02-26 14:48:15 +0600
committerGrail Finder <wohilas@gmail.com>2023-02-26 14:48:15 +0600
commit3f99abb502d373cb4b520b212afd4be9ed4da07f (patch)
tree221c7ccc943a4e4262d536cb268fd7dd04c59074 /workers.go
parentf60be7df2d741b73863df63c8a275d1b9471db58 (diff)
Feat: use md5 hash to save on space with shorter names
Diffstat (limited to 'workers.go')
-rw-r--r--workers.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/workers.go b/workers.go
index 91f9eaf..4255e33 100644
--- a/workers.go
+++ b/workers.go
@@ -28,6 +28,7 @@ func cutterQueue(fQueue chan string, workerID int) {
return
}
fpath := <-fQueue
- cutOnEqualParts(fpath, segmentSize)
+ outname := fpathToOutname(fpath)
+ cutOnEqualParts(fpath, outname, segmentSize)
}
}