@synnaxlabs/pluto 0.21.9 → 0.21.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1263,9 +1263,10 @@ class Static {
1263
1263
  * @returns metrics about the garbage collection.
1264
1264
  */
1265
1265
  gc() {
1266
+ const { staleEntryThreshold } = this.props;
1266
1267
  const res = zeroCacheGCMetrics();
1267
1268
  const newData = this.data.filter((s) => {
1268
- const shouldKeep = s.data.refCount === 0 && aggregator.m.since(s.addedAt).lessThan(this.props.staleEntryThreshold);
1269
+ const shouldKeep = s.data.refCount > 0 || aggregator.m.since(s.addedAt).lessThan(staleEntryThreshold);
1269
1270
  if (!shouldKeep)
1270
1271
  res.purgedBytes = res.purgedBytes.add(s.data.byteCapacity);
1271
1272
  return shouldKeep;
@@ -14334,4 +14335,4 @@ exports.withinBounds = withinBounds;
14334
14335
  exports.withinSizeThreshold = withinSizeThreshold;
14335
14336
  exports.xAxisStateZ = xAxisStateZ;
14336
14337
  exports.yAxisStateZ = yAxisStateZ;
14337
- //# sourceMappingURL=LinePlot-Bnb8Ufob.cjs.map
14338
+ //# sourceMappingURL=LinePlot-mjjFdNnj.cjs.map