summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/zfjagann/golang-ring/ring.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/zfjagann/golang-ring/ring.go')
-rw-r--r--vendor/github.com/zfjagann/golang-ring/ring.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/github.com/zfjagann/golang-ring/ring.go b/vendor/github.com/zfjagann/golang-ring/ring.go
index 6d2a7e24..345ee8cd 100644
--- a/vendor/github.com/zfjagann/golang-ring/ring.go
+++ b/vendor/github.com/zfjagann/golang-ring/ring.go
@@ -56,7 +56,7 @@ func (r *Ring) ContentSize() int {
} else {
difference := (r.head - r.tail)
if difference < 0 {
- difference = -difference
+ difference += r.capacity()
}
return difference + 1
}