fix: initialize the avgcachestatus
This commit is contained in:
@@ -67,6 +67,8 @@ func New(address string, memorySize string, memoryMultiplier int, diskSize strin
|
|||||||
|
|
||||||
memory: m,
|
memory: m,
|
||||||
disk: d,
|
disk: d,
|
||||||
|
|
||||||
|
hits: avgcachestate.New(100),
|
||||||
}
|
}
|
||||||
|
|
||||||
if d.Size() > d.Capacity() {
|
if d.Size() > d.Capacity() {
|
||||||
|
|||||||
Reference in New Issue
Block a user