Skip to content

Commit

Permalink
Merge pull request #2 from David-DT/fix/changed-json-format
Browse files Browse the repository at this point in the history
Adjusted versionStats + removed node log
  • Loading branch information
Tuditi authored Feb 9, 2021
2 parents 823fd6d + 43e2cac commit 006617a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ const report = (crawler) => {
blockStats[node.height].ids[node.id] = 1
}

if (versionStats[node.version]) {
versionStats[node.version].count += 1
if (versionStats[node.config.version]) {
versionStats[node.config.version].count += 1
} else {
versionStats[node.version] = {
versionStats[node.config.version] = {
count: 1,
version: node.version
version: node.config.version
}
}

Expand Down Expand Up @@ -83,7 +83,7 @@ const report = (crawler) => {
for (const stat of orderBy(Object.values(versionStats), ['version'], ['desc'])) {
console.log(` - ${stat.version} on ${stat.count} nodes`)
}

console.log('------------------------------------------')
console.log(`Finished scanning in ${new Date() - crawler.startTime}ms`)

Expand Down

0 comments on commit 006617a

Please sign in to comment.