aboutsummaryrefslogtreecommitdiff
path: root/const.go
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2021-08-30 19:22:03 +0200
committern-peugnet <n.peugnet@free.fr>2021-08-30 19:22:03 +0200
commit36da6832dce67da09d7bcee1a6ab2312e515cb0a (patch)
tree124ce9a3cae0371934fd34305a00133c753bdfc9 /const.go
parent204f6150056edd1bc8f33a7d75609594e34437eb (diff)
downloaddna-backup-36da6832dce67da09d7bcee1a6ab2312e515cb0a.tar.gz
dna-backup-36da6832dce67da09d7bcee1a6ab2312e515cb0a.zip
make sketch parameters global vars
Diffstat (limited to 'const.go')
-rw-r--r--const.go13
1 files changed, 8 insertions, 5 deletions
diff --git a/const.go b/const.go
index 700d3df..c97578c 100644
--- a/const.go
+++ b/const.go
@@ -3,9 +3,12 @@ package main
// Defined as var to prevent from using them as const as I want to keep
// beeing able to change tkem at runtime.
var (
- chunkSize = 8 << 10
- chunksName = "chunks"
- chunkIdFmt = "%015d"
- versionFmt = "%05d"
- filesName = "files"
+ chunkSize = 8 << 10
+ chunksName = "chunks"
+ chunkIdFmt = "%015d"
+ versionFmt = "%05d"
+ filesName = "files"
+ sketchWSize = 32
+ sketchSfCount = 3
+ sketchFCount = 4
)