(stats *base.CacheStats)
| 106 | } |
| 107 | |
| 108 | func getCacheUtilization(stats *base.CacheStats) (active, tombstones, removals int) { |
| 109 | active = int(stats.ChannelCacheRevsActive.Value()) |
| 110 | tombstones = int(stats.ChannelCacheRevsTombstone.Value()) |
| 111 | removals = int(stats.ChannelCacheRevsRemoval.Value()) |
| 112 | |
| 113 | return active, tombstones, removals |
| 114 | } |
| 115 | |
| 116 | // Test Cases |
| 117 | // - simple compact |
no test coverage detected