Skip to content

Commit 3bb4de4

Browse files
committed
Database storage tweaks
1 parent 06e21b4 commit 3bb4de4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

data_rows/DatabaseStorageUsageHistory.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ export default class DatabaseStorageUsageHistory extends DataRow {
2929
if (Math.random() < 0.1) {
3030
const changeDegree = Math.random() * (0.2 - 0.05) + 0.05;
3131
const change = Math.round(size * changeDegree);
32-
if (Math.random() < 0.5) {
32+
if (Math.random() < 0.3) {
3333
size -= change;
3434
} else {
3535
size += change;
3636
}
3737
}
38+
this.constructor._sizes[this.DATABASE_NAME] = size;
3839
this.AVERAGE_DATABASE_BYTES = size;
3940
}
4041

@@ -53,7 +54,7 @@ export default class DatabaseStorageUsageHistory extends DataRow {
5354
`Must call ${this.name}.initialize() only once`
5455
);
5556
}
56-
const seedSizes = [1e12, 1e13, 1e14, 1e15];
57+
const seedSizes = [1.1e15, 1.2e15, 1.3e15, 1.4e15];
5758
const sizes = {};
5859
for (const db of dbs) {
5960
const seed = randomFromArray(seedSizes);

0 commit comments

Comments
 (0)