Skip to content

Commit

Permalink
Update plot-txs and remove incompatible results
Browse files Browse the repository at this point in the history
  • Loading branch information
ch1bo committed Jul 20, 2021
1 parent b8259db commit facd84c
Show file tree
Hide file tree
Showing 13 changed files with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions scripts/tail/plot-txs.mjs
Expand Up @@ -15,15 +15,16 @@ const svgFile = inputFile.replace("csv", "svg");
fs.writeFileSync(svgFile, await confirmationTimes(svgFile.replace(".svg",""), txs));

async function confirmationTimes(name, txs) {
let data = [];
for (let i = 0; i < txs.length; i++) {
const data = txs.map((entry) => {
// Parse scientific notation into 'Number'
const t = txs[i][1];
if (t != undefined) {
const confTime = JSON.parse(t);
data.push({ x: i, y: confTime });
const t1 = entry[0];
const t2 = entry[2];
if (t1 != undefined && t2 != undefined) {
const slot = JSON.parse(t1);
const confTime = JSON.parse(t2);
return { x: slot, y: confTime };
}
}
});
const configuration = {
type: 'scatter',
options: {
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit facd84c

Please sign in to comment.