We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f64df35 commit b239e20Copy full SHA for b239e20
workspaces/arborist/lib/packument-cache.js
@@ -35,11 +35,11 @@ class PackumentCache extends LRUCache {
35
if (!p[sizeKey]) {
36
return maxEntrySize + 1
37
}
38
- if (p[sizeKey] < 10000) {
+ if (p[sizeKey] < 10_000) {
39
return p[sizeKey] * 2
40
41
- if (p[sizeKey] < 1000000) {
42
- return p[sizeKey] * 1.5
+ if (p[sizeKey] < 1_000_000) {
+ return Math.floor(p[sizeKey] * 1.5)
43
44
// It is less beneficial to store a small amount of super large things
45
// at the cost of all other packuments.
0 commit comments