aboutsummaryrefslogtreecommitdiff
path: root/repo.go
diff options
context:
space:
mode:
Diffstat (limited to 'repo.go')
-rw-r--r--repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/repo.go b/repo.go
index f29dfb6..ff19333 100644
--- a/repo.go
+++ b/repo.go
@@ -582,7 +582,7 @@ func (r *Repo) matchStream(stream io.Reader, version int) []Chunk {
h := hasher.Sum64()
chunkId, exists := r.fingerprints[h]
if exists {
- if len(buff) > r.chunkSize && len(buff) < r.chunkSize*2 {
+ if len(buff) > r.chunkSize && len(buff) <= r.chunkSize*2 {
size := len(buff) - r.chunkSize
temp := NewTempChunk(buff[:size])
chunks = append(chunks, r.encodeTempChunks(prev, temp, version, &last, storeQueue)...)