2019-07-21 16:59:47 +02:00
|
|
|
import memPool from './mempool';
|
|
|
|
import { DB } from '../database';
|
2020-10-13 10:27:52 +02:00
|
|
|
import logger from '../logger';
|
2019-07-21 16:59:47 +02:00
|
|
|
|
2020-12-27 22:47:22 +01:00
|
|
|
import { Statistic, TransactionExtended, OptimizedStatistic } from '../mempool.interfaces';
|
2019-07-21 16:59:47 +02:00
|
|
|
|
|
|
|
class Statistics {
|
|
|
|
protected intervalTimer: NodeJS.Timer | undefined;
|
2020-06-08 21:08:46 +02:00
|
|
|
protected newStatisticsEntryCallback: ((stats: OptimizedStatistic) => void) | undefined;
|
2019-07-26 11:48:32 +02:00
|
|
|
|
2020-06-08 21:08:46 +02:00
|
|
|
public setNewStatisticsEntryCallback(fn: (stats: OptimizedStatistic) => void) {
|
2019-07-26 11:48:32 +02:00
|
|
|
this.newStatisticsEntryCallback = fn;
|
|
|
|
}
|
2019-07-21 16:59:47 +02:00
|
|
|
|
2020-02-26 11:49:53 +01:00
|
|
|
constructor() { }
|
2019-07-21 16:59:47 +02:00
|
|
|
|
|
|
|
public startStatistics(): void {
|
2020-10-13 10:27:52 +02:00
|
|
|
logger.info('Starting statistics service');
|
2020-02-26 11:49:53 +01:00
|
|
|
|
2019-07-21 16:59:47 +02:00
|
|
|
const now = new Date();
|
|
|
|
const nextInterval = new Date(now.getFullYear(), now.getMonth(), now.getDate(), now.getHours(),
|
|
|
|
Math.floor(now.getMinutes() / 1) * 1 + 1, 0, 0);
|
|
|
|
const difference = nextInterval.getTime() - now.getTime();
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
this.runStatistics();
|
2020-04-01 15:06:44 +02:00
|
|
|
this.intervalTimer = setInterval(() => {
|
|
|
|
this.runStatistics();
|
|
|
|
}, 1 * 60 * 1000);
|
2019-07-21 16:59:47 +02:00
|
|
|
}, difference);
|
|
|
|
}
|
|
|
|
|
2019-07-26 11:48:32 +02:00
|
|
|
private async runStatistics(): Promise<void> {
|
2021-01-05 21:09:31 +01:00
|
|
|
if (!memPool.isInSync()) {
|
|
|
|
return;
|
|
|
|
}
|
2019-07-21 16:59:47 +02:00
|
|
|
const currentMempool = memPool.getMempool();
|
|
|
|
const txPerSecond = memPool.getTxPerSecond();
|
|
|
|
const vBytesPerSecond = memPool.getVBytesPerSecond();
|
|
|
|
|
2020-10-13 11:00:58 +02:00
|
|
|
logger.debug('Running statistics');
|
2019-07-21 16:59:47 +02:00
|
|
|
|
2020-02-23 13:16:50 +01:00
|
|
|
let memPoolArray: TransactionExtended[] = [];
|
2019-07-21 16:59:47 +02:00
|
|
|
for (const i in currentMempool) {
|
|
|
|
if (currentMempool.hasOwnProperty(i)) {
|
|
|
|
memPoolArray.push(currentMempool[i]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// Remove 0 and undefined
|
2020-02-16 16:15:07 +01:00
|
|
|
memPoolArray = memPoolArray.filter((tx) => tx.feePerVsize);
|
2019-07-21 16:59:47 +02:00
|
|
|
|
|
|
|
if (!memPoolArray.length) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2020-02-16 16:15:07 +01:00
|
|
|
memPoolArray.sort((a, b) => a.feePerVsize - b.feePerVsize);
|
2019-07-21 16:59:47 +02:00
|
|
|
const totalWeight = memPoolArray.map((tx) => tx.vsize).reduce((acc, curr) => acc + curr) * 4;
|
|
|
|
const totalFee = memPoolArray.map((tx) => tx.fee).reduce((acc, curr) => acc + curr);
|
|
|
|
|
|
|
|
const logFees = [1, 2, 3, 4, 5, 6, 8, 10, 12, 15, 20, 30, 40, 50, 60, 70, 80, 90, 100, 125, 150, 175, 200,
|
|
|
|
250, 300, 350, 400, 500, 600, 700, 800, 900, 1000, 1200, 1400, 1600, 1800, 2000];
|
|
|
|
|
|
|
|
const weightVsizeFees: { [feePerWU: number]: number } = {};
|
|
|
|
|
|
|
|
memPoolArray.forEach((transaction) => {
|
|
|
|
for (let i = 0; i < logFees.length; i++) {
|
|
|
|
if ((logFees[i] === 2000 && transaction.feePerVsize >= 2000) || transaction.feePerVsize <= logFees[i]) {
|
|
|
|
if (weightVsizeFees[logFees[i]]) {
|
|
|
|
weightVsizeFees[logFees[i]] += transaction.vsize;
|
|
|
|
} else {
|
|
|
|
weightVsizeFees[logFees[i]] = transaction.vsize;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2019-07-26 11:48:32 +02:00
|
|
|
const insertId = await this.$create({
|
2019-07-21 16:59:47 +02:00
|
|
|
added: 'NOW()',
|
|
|
|
unconfirmed_transactions: memPoolArray.length,
|
|
|
|
tx_per_second: txPerSecond,
|
|
|
|
vbytes_per_second: Math.round(vBytesPerSecond),
|
|
|
|
mempool_byte_weight: totalWeight,
|
|
|
|
total_fee: totalFee,
|
2020-02-16 16:15:07 +01:00
|
|
|
fee_data: '',
|
2019-07-21 16:59:47 +02:00
|
|
|
vsize_1: weightVsizeFees['1'] || 0,
|
|
|
|
vsize_2: weightVsizeFees['2'] || 0,
|
|
|
|
vsize_3: weightVsizeFees['3'] || 0,
|
|
|
|
vsize_4: weightVsizeFees['4'] || 0,
|
|
|
|
vsize_5: weightVsizeFees['5'] || 0,
|
|
|
|
vsize_6: weightVsizeFees['6'] || 0,
|
|
|
|
vsize_8: weightVsizeFees['8'] || 0,
|
|
|
|
vsize_10: weightVsizeFees['10'] || 0,
|
|
|
|
vsize_12: weightVsizeFees['12'] || 0,
|
|
|
|
vsize_15: weightVsizeFees['15'] || 0,
|
|
|
|
vsize_20: weightVsizeFees['20'] || 0,
|
|
|
|
vsize_30: weightVsizeFees['30'] || 0,
|
|
|
|
vsize_40: weightVsizeFees['40'] || 0,
|
|
|
|
vsize_50: weightVsizeFees['50'] || 0,
|
|
|
|
vsize_60: weightVsizeFees['60'] || 0,
|
|
|
|
vsize_70: weightVsizeFees['70'] || 0,
|
|
|
|
vsize_80: weightVsizeFees['80'] || 0,
|
|
|
|
vsize_90: weightVsizeFees['90'] || 0,
|
|
|
|
vsize_100: weightVsizeFees['100'] || 0,
|
|
|
|
vsize_125: weightVsizeFees['125'] || 0,
|
|
|
|
vsize_150: weightVsizeFees['150'] || 0,
|
|
|
|
vsize_175: weightVsizeFees['175'] || 0,
|
|
|
|
vsize_200: weightVsizeFees['200'] || 0,
|
|
|
|
vsize_250: weightVsizeFees['250'] || 0,
|
|
|
|
vsize_300: weightVsizeFees['300'] || 0,
|
|
|
|
vsize_350: weightVsizeFees['350'] || 0,
|
|
|
|
vsize_400: weightVsizeFees['400'] || 0,
|
|
|
|
vsize_500: weightVsizeFees['500'] || 0,
|
|
|
|
vsize_600: weightVsizeFees['600'] || 0,
|
|
|
|
vsize_700: weightVsizeFees['700'] || 0,
|
|
|
|
vsize_800: weightVsizeFees['800'] || 0,
|
|
|
|
vsize_900: weightVsizeFees['900'] || 0,
|
|
|
|
vsize_1000: weightVsizeFees['1000'] || 0,
|
|
|
|
vsize_1200: weightVsizeFees['1200'] || 0,
|
|
|
|
vsize_1400: weightVsizeFees['1400'] || 0,
|
|
|
|
vsize_1600: weightVsizeFees['1600'] || 0,
|
|
|
|
vsize_1800: weightVsizeFees['1800'] || 0,
|
|
|
|
vsize_2000: weightVsizeFees['2000'] || 0,
|
|
|
|
});
|
2019-07-26 11:48:32 +02:00
|
|
|
|
|
|
|
if (this.newStatisticsEntryCallback && insertId) {
|
|
|
|
const newStats = await this.$get(insertId);
|
2020-06-08 21:08:46 +02:00
|
|
|
if (newStats) {
|
|
|
|
this.newStatisticsEntryCallback(newStats);
|
|
|
|
}
|
2019-07-26 11:48:32 +02:00
|
|
|
}
|
2019-07-21 16:59:47 +02:00
|
|
|
}
|
|
|
|
|
2020-02-16 16:15:07 +01:00
|
|
|
private async $create(statistics: Statistic): Promise<number | undefined> {
|
2019-07-21 16:59:47 +02:00
|
|
|
try {
|
|
|
|
const connection = await DB.pool.getConnection();
|
|
|
|
const query = `INSERT INTO statistics(
|
|
|
|
added,
|
|
|
|
unconfirmed_transactions,
|
|
|
|
tx_per_second,
|
|
|
|
vbytes_per_second,
|
|
|
|
mempool_byte_weight,
|
|
|
|
fee_data,
|
|
|
|
total_fee,
|
|
|
|
vsize_1,
|
|
|
|
vsize_2,
|
|
|
|
vsize_3,
|
|
|
|
vsize_4,
|
|
|
|
vsize_5,
|
|
|
|
vsize_6,
|
|
|
|
vsize_8,
|
|
|
|
vsize_10,
|
|
|
|
vsize_12,
|
|
|
|
vsize_15,
|
|
|
|
vsize_20,
|
|
|
|
vsize_30,
|
|
|
|
vsize_40,
|
|
|
|
vsize_50,
|
|
|
|
vsize_60,
|
|
|
|
vsize_70,
|
|
|
|
vsize_80,
|
|
|
|
vsize_90,
|
|
|
|
vsize_100,
|
|
|
|
vsize_125,
|
|
|
|
vsize_150,
|
|
|
|
vsize_175,
|
|
|
|
vsize_200,
|
|
|
|
vsize_250,
|
|
|
|
vsize_300,
|
|
|
|
vsize_350,
|
|
|
|
vsize_400,
|
|
|
|
vsize_500,
|
|
|
|
vsize_600,
|
|
|
|
vsize_700,
|
|
|
|
vsize_800,
|
|
|
|
vsize_900,
|
|
|
|
vsize_1000,
|
|
|
|
vsize_1200,
|
|
|
|
vsize_1400,
|
|
|
|
vsize_1600,
|
|
|
|
vsize_1800,
|
|
|
|
vsize_2000
|
|
|
|
)
|
|
|
|
VALUES (${statistics.added}, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
|
|
|
|
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`;
|
|
|
|
|
|
|
|
const params: (string | number)[] = [
|
|
|
|
statistics.unconfirmed_transactions,
|
|
|
|
statistics.tx_per_second,
|
|
|
|
statistics.vbytes_per_second,
|
|
|
|
statistics.mempool_byte_weight,
|
|
|
|
statistics.fee_data,
|
|
|
|
statistics.total_fee,
|
|
|
|
statistics.vsize_1,
|
|
|
|
statistics.vsize_2,
|
|
|
|
statistics.vsize_3,
|
|
|
|
statistics.vsize_4,
|
|
|
|
statistics.vsize_5,
|
|
|
|
statistics.vsize_6,
|
|
|
|
statistics.vsize_8,
|
|
|
|
statistics.vsize_10,
|
|
|
|
statistics.vsize_12,
|
|
|
|
statistics.vsize_15,
|
|
|
|
statistics.vsize_20,
|
|
|
|
statistics.vsize_30,
|
|
|
|
statistics.vsize_40,
|
|
|
|
statistics.vsize_50,
|
|
|
|
statistics.vsize_60,
|
|
|
|
statistics.vsize_70,
|
|
|
|
statistics.vsize_80,
|
|
|
|
statistics.vsize_90,
|
|
|
|
statistics.vsize_100,
|
|
|
|
statistics.vsize_125,
|
|
|
|
statistics.vsize_150,
|
|
|
|
statistics.vsize_175,
|
|
|
|
statistics.vsize_200,
|
|
|
|
statistics.vsize_250,
|
|
|
|
statistics.vsize_300,
|
|
|
|
statistics.vsize_350,
|
|
|
|
statistics.vsize_400,
|
|
|
|
statistics.vsize_500,
|
|
|
|
statistics.vsize_600,
|
|
|
|
statistics.vsize_700,
|
|
|
|
statistics.vsize_800,
|
|
|
|
statistics.vsize_900,
|
|
|
|
statistics.vsize_1000,
|
|
|
|
statistics.vsize_1200,
|
|
|
|
statistics.vsize_1400,
|
|
|
|
statistics.vsize_1600,
|
|
|
|
statistics.vsize_1800,
|
|
|
|
statistics.vsize_2000,
|
|
|
|
];
|
2019-07-26 11:48:32 +02:00
|
|
|
const [result]: any = await connection.query(query, params);
|
2019-07-21 16:59:47 +02:00
|
|
|
connection.release();
|
2019-07-26 11:48:32 +02:00
|
|
|
return result.insertId;
|
2019-07-21 16:59:47 +02:00
|
|
|
} catch (e) {
|
2020-10-28 05:00:48 +01:00
|
|
|
logger.err('$create() error' + e.message || e);
|
2019-07-21 16:59:47 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-25 19:00:21 +01:00
|
|
|
private getQueryForDays(div: number) {
|
2019-07-21 16:59:47 +02:00
|
|
|
return `SELECT id, added, unconfirmed_transactions,
|
2020-10-25 19:00:21 +01:00
|
|
|
tx_per_second,
|
|
|
|
vbytes_per_second,
|
|
|
|
vsize_1,
|
|
|
|
vsize_2,
|
|
|
|
vsize_3,
|
|
|
|
vsize_4,
|
|
|
|
vsize_5,
|
|
|
|
vsize_6,
|
|
|
|
vsize_8,
|
|
|
|
vsize_10,
|
|
|
|
vsize_12,
|
|
|
|
vsize_15,
|
|
|
|
vsize_20,
|
|
|
|
vsize_30,
|
|
|
|
vsize_40,
|
|
|
|
vsize_50,
|
|
|
|
vsize_60,
|
|
|
|
vsize_70,
|
|
|
|
vsize_80,
|
|
|
|
vsize_90,
|
|
|
|
vsize_100,
|
|
|
|
vsize_125,
|
|
|
|
vsize_150,
|
|
|
|
vsize_175,
|
|
|
|
vsize_200,
|
|
|
|
vsize_250,
|
|
|
|
vsize_300,
|
|
|
|
vsize_350,
|
|
|
|
vsize_400,
|
|
|
|
vsize_500,
|
|
|
|
vsize_600,
|
|
|
|
vsize_700,
|
|
|
|
vsize_800,
|
|
|
|
vsize_900,
|
|
|
|
vsize_1000,
|
|
|
|
vsize_1200,
|
|
|
|
vsize_1400,
|
|
|
|
vsize_1600,
|
|
|
|
vsize_1800,
|
|
|
|
vsize_2000 FROM statistics GROUP BY UNIX_TIMESTAMP(added) DIV ${div} ORDER BY id DESC LIMIT 480`;
|
2019-07-21 16:59:47 +02:00
|
|
|
}
|
|
|
|
|
2020-02-16 18:26:57 +01:00
|
|
|
public async $get(id: number): Promise<OptimizedStatistic | undefined> {
|
2019-07-26 11:48:32 +02:00
|
|
|
try {
|
|
|
|
const connection = await DB.pool.getConnection();
|
|
|
|
const query = `SELECT * FROM statistics WHERE id = ?`;
|
|
|
|
const [rows] = await connection.query<any>(query, [id]);
|
|
|
|
connection.release();
|
2020-02-16 18:26:57 +01:00
|
|
|
if (rows[0]) {
|
|
|
|
return this.mapStatisticToOptimizedStatistic([rows[0]])[0];
|
|
|
|
}
|
2019-07-26 11:48:32 +02:00
|
|
|
} catch (e) {
|
2020-10-28 05:00:48 +01:00
|
|
|
logger.err('$list2H() error' + e.message || e);
|
2019-07-26 11:48:32 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-16 18:26:57 +01:00
|
|
|
public async $list2H(): Promise<OptimizedStatistic[]> {
|
2019-07-21 16:59:47 +02:00
|
|
|
try {
|
|
|
|
const connection = await DB.pool.getConnection();
|
|
|
|
const query = `SELECT * FROM statistics ORDER BY id DESC LIMIT 120`;
|
|
|
|
const [rows] = await connection.query<any>(query);
|
|
|
|
connection.release();
|
2020-02-16 18:26:57 +01:00
|
|
|
return this.mapStatisticToOptimizedStatistic(rows);
|
2019-07-21 16:59:47 +02:00
|
|
|
} catch (e) {
|
2020-10-28 05:00:48 +01:00
|
|
|
logger.err('$list2H() error' + e.message || e);
|
2019-07-21 16:59:47 +02:00
|
|
|
return [];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-16 18:26:57 +01:00
|
|
|
public async $list24H(): Promise<OptimizedStatistic[]> {
|
2019-07-21 16:59:47 +02:00
|
|
|
try {
|
|
|
|
const connection = await DB.pool.getConnection();
|
2020-10-25 19:00:21 +01:00
|
|
|
const query = this.getQueryForDays(180);
|
2019-07-21 16:59:47 +02:00
|
|
|
const [rows] = await connection.query<any>(query);
|
|
|
|
connection.release();
|
2020-02-16 18:26:57 +01:00
|
|
|
return this.mapStatisticToOptimizedStatistic(rows);
|
2019-07-21 16:59:47 +02:00
|
|
|
} catch (e) {
|
2020-10-28 05:00:48 +01:00
|
|
|
logger.err('$list24h() error' + e.message || e);
|
2019-07-21 16:59:47 +02:00
|
|
|
return [];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-16 18:26:57 +01:00
|
|
|
public async $list1W(): Promise<OptimizedStatistic[]> {
|
2019-07-21 16:59:47 +02:00
|
|
|
try {
|
|
|
|
const connection = await DB.pool.getConnection();
|
2020-10-25 19:00:21 +01:00
|
|
|
const query = this.getQueryForDays(1260);
|
2019-07-21 16:59:47 +02:00
|
|
|
const [rows] = await connection.query<any>(query);
|
|
|
|
connection.release();
|
2020-02-16 18:26:57 +01:00
|
|
|
return this.mapStatisticToOptimizedStatistic(rows);
|
2019-07-21 16:59:47 +02:00
|
|
|
} catch (e) {
|
2020-10-13 10:27:52 +02:00
|
|
|
logger.err('$list1W() error' + e);
|
2019-07-21 16:59:47 +02:00
|
|
|
return [];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-16 18:26:57 +01:00
|
|
|
public async $list1M(): Promise<OptimizedStatistic[]> {
|
2019-07-21 16:59:47 +02:00
|
|
|
try {
|
|
|
|
const connection = await DB.pool.getConnection();
|
2020-10-25 19:00:21 +01:00
|
|
|
const query = this.getQueryForDays(5040);
|
2019-07-21 16:59:47 +02:00
|
|
|
const [rows] = await connection.query<any>(query);
|
|
|
|
connection.release();
|
2020-02-16 18:26:57 +01:00
|
|
|
return this.mapStatisticToOptimizedStatistic(rows);
|
2019-07-21 16:59:47 +02:00
|
|
|
} catch (e) {
|
2020-10-13 10:27:52 +02:00
|
|
|
logger.err('$list1M() error' + e);
|
2019-07-21 16:59:47 +02:00
|
|
|
return [];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-16 18:26:57 +01:00
|
|
|
public async $list3M(): Promise<OptimizedStatistic[]> {
|
2019-07-21 16:59:47 +02:00
|
|
|
try {
|
|
|
|
const connection = await DB.pool.getConnection();
|
2020-10-25 19:00:21 +01:00
|
|
|
const query = this.getQueryForDays(15120);
|
2019-07-21 16:59:47 +02:00
|
|
|
const [rows] = await connection.query<any>(query);
|
|
|
|
connection.release();
|
2020-02-16 18:26:57 +01:00
|
|
|
return this.mapStatisticToOptimizedStatistic(rows);
|
2019-07-21 16:59:47 +02:00
|
|
|
} catch (e) {
|
2020-10-13 10:27:52 +02:00
|
|
|
logger.err('$list3M() error' + e);
|
2019-07-21 16:59:47 +02:00
|
|
|
return [];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-16 18:26:57 +01:00
|
|
|
public async $list6M(): Promise<OptimizedStatistic[]> {
|
2019-07-21 16:59:47 +02:00
|
|
|
try {
|
|
|
|
const connection = await DB.pool.getConnection();
|
2020-10-25 19:00:21 +01:00
|
|
|
const query = this.getQueryForDays(30240);
|
2019-07-21 16:59:47 +02:00
|
|
|
const [rows] = await connection.query<any>(query);
|
|
|
|
connection.release();
|
2020-02-16 18:26:57 +01:00
|
|
|
return this.mapStatisticToOptimizedStatistic(rows);
|
2019-07-21 16:59:47 +02:00
|
|
|
} catch (e) {
|
2020-10-13 10:27:52 +02:00
|
|
|
logger.err('$list6M() error' + e);
|
2019-07-21 16:59:47 +02:00
|
|
|
return [];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-16 18:26:57 +01:00
|
|
|
public async $list1Y(): Promise<OptimizedStatistic[]> {
|
|
|
|
try {
|
|
|
|
const connection = await DB.pool.getConnection();
|
2020-10-25 19:00:21 +01:00
|
|
|
const query = this.getQueryForDays(60480);
|
2020-02-16 18:26:57 +01:00
|
|
|
const [rows] = await connection.query<any>(query);
|
|
|
|
connection.release();
|
|
|
|
return this.mapStatisticToOptimizedStatistic(rows);
|
|
|
|
} catch (e) {
|
2020-10-13 10:27:52 +02:00
|
|
|
logger.err('$list6M() error' + e);
|
2020-02-16 18:26:57 +01:00
|
|
|
return [];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
private mapStatisticToOptimizedStatistic(statistic: Statistic[]): OptimizedStatistic[] {
|
|
|
|
return statistic.map((s) => {
|
|
|
|
return {
|
|
|
|
id: s.id || 0,
|
|
|
|
added: s.added,
|
|
|
|
unconfirmed_transactions: s.unconfirmed_transactions,
|
|
|
|
tx_per_second: s.tx_per_second,
|
|
|
|
vbytes_per_second: s.vbytes_per_second,
|
|
|
|
mempool_byte_weight: s.mempool_byte_weight,
|
|
|
|
total_fee: s.total_fee,
|
|
|
|
vsizes: [
|
|
|
|
s.vsize_1,
|
|
|
|
s.vsize_2,
|
|
|
|
s.vsize_3,
|
|
|
|
s.vsize_4,
|
|
|
|
s.vsize_5,
|
|
|
|
s.vsize_6,
|
|
|
|
s.vsize_8,
|
|
|
|
s.vsize_10,
|
|
|
|
s.vsize_12,
|
|
|
|
s.vsize_15,
|
|
|
|
s.vsize_20,
|
|
|
|
s.vsize_30,
|
|
|
|
s.vsize_40,
|
|
|
|
s.vsize_50,
|
|
|
|
s.vsize_60,
|
|
|
|
s.vsize_70,
|
|
|
|
s.vsize_80,
|
|
|
|
s.vsize_90,
|
|
|
|
s.vsize_100,
|
|
|
|
s.vsize_125,
|
|
|
|
s.vsize_150,
|
|
|
|
s.vsize_175,
|
|
|
|
s.vsize_200,
|
|
|
|
s.vsize_250,
|
|
|
|
s.vsize_300,
|
|
|
|
s.vsize_350,
|
|
|
|
s.vsize_400,
|
|
|
|
s.vsize_500,
|
|
|
|
s.vsize_600,
|
|
|
|
s.vsize_700,
|
|
|
|
s.vsize_800,
|
|
|
|
s.vsize_900,
|
|
|
|
s.vsize_1000,
|
|
|
|
s.vsize_1200,
|
|
|
|
s.vsize_1400,
|
|
|
|
s.vsize_1600,
|
|
|
|
s.vsize_1800,
|
|
|
|
s.vsize_2000,
|
|
|
|
]
|
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2019-07-21 16:59:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export default new Statistics();
|