Skip to content

Commit

Permalink
fix: stats json format
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinKolarik committed Jul 14, 2023
1 parent 4a4843b commit a0e7ffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion probes-stats/known.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const generateFiles = (data: ResultItem[], acc: {ipinfo: string, maxmind: string
`accuracy:,1,${acc.ipinfo},${acc.maxmind},${acc.fastly},${acc.algorithm}`,
...data.map(row => `${row.ip},${row.city},${row.ipinfo},${row.maxmind},${row.fastly},${row.algorithm}`),
].join('\n');
fs.writeFileSync('./probes-stats/known-result.json', JSON.stringify(data, null, 2));
fs.writeFileSync('./probes-stats/known-result.json', JSON.stringify(data, null, '\t'));
fs.writeFileSync('./probes-stats/known-result.csv', csvContent);
};

Expand Down

0 comments on commit a0e7ffc

Please sign in to comment.