Fix graph data for incoming transaction graphs

This commit is contained in:
nymkappa 2021-12-11 10:38:13 +09:00
parent 37722fe165
commit 41f3f0ab46
2 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ export class StatisticsComponent implements OnInit {
this.mempoolTransactionsWeightPerSecondData = {
labels: labels,
series: [mempoolStats.map((stats) => stats.vbytes_per_second)],
series: [mempoolStats.map((stats) => [stats.added * 1000, stats.vbytes_per_second])],
};
}

View File

@ -286,7 +286,7 @@ export class DashboardComponent implements OnInit {
return {
labels: labels,
series: [mempoolStats.map((stats) => stats.vbytes_per_second)],
series: [mempoolStats.map((stats) => [stats.added * 1000, stats.vbytes_per_second])],
};
}