@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.
@@ -1262,9 +1262,10 @@ class Static {
1262
1262
  * @returns metrics about the garbage collection.
1263
1263
  */
1264
1264
  gc() {
1265
+ const { staleEntryThreshold } = this.props;
1265
1266
  const res = zeroCacheGCMetrics();
1266
1267
  const newData = this.data.filter((s) => {
1267
- const shouldKeep = s.data.refCount === 0 && m.since(s.addedAt).lessThan(this.props.staleEntryThreshold);
1268
+ const shouldKeep = s.data.refCount > 0 || m.since(s.addedAt).lessThan(staleEntryThreshold);
1268
1269
  if (!shouldKeep)
1269
1270
  res.purgedBytes = res.purgedBytes.add(s.data.byteCapacity);
1270
1271
  return shouldKeep;
@@ -14338,4 +14339,4 @@ export {
14338
14339
  value as y,
14339
14340
  canvas as z
14340
14341
  };
14341
- //# sourceMappingURL=LinePlot-KYwy1D7H.js.map
14342
+ //# sourceMappingURL=LinePlot-BeWCHNq-.js.map