20318: Add config entry for keep-web cache size.
[arvados.git] / services / keep-web / cache.go
index df5705ed326aa32f4dce2ee1969c1190f8507c6f..d443bc0829f81098715254e4b0e08cd7f5ac87bb 100644 (file)
@@ -303,7 +303,7 @@ func (c *cache) pruneSessions() {
        // Mark more sessions for deletion until reaching desired
        // memory size limit, starting with the oldest entries.
        for i, snap := range snaps {
-               if size <= c.cluster.Collections.WebDAVCache.MaxCollectionBytes {
+               if size <= int64(c.cluster.Collections.WebDAVCache.MaxCollectionBytes) {
                        break
                }
                if snap.prune {