Skip to content

Commit

Permalink
fix(gatsby-telemetry): enable CI name for unsupported CI & fixed cpu …
Browse files Browse the repository at this point in the history
…count (gatsbyjs#14238)
  • Loading branch information
jamo authored and sidharthachatterjee committed May 22, 2019
1 parent 24d7e5f commit 7d3d3e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/gatsby-telemetry/src/telemetry.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,10 @@ module.exports = class AnalyticsTracker {
nodeVersion: process.version,
platform: os.platform(),
release: os.release(),
cpus: cpus && cpus.length > 0 && cpus[0].model,
cpus: (cpus && cpus.length > 0 && cpus[0].model) || undefined,
arch: os.arch(),
ci: ci.isCI,
ciName: (ci.isCI && ci.name) || undefined,
ciName: (ci.isCI && ci.name) || process.env.CI_NAME || undefined,
docker: isDocker(),
}
this.osInfo = osInfo
Expand Down

0 comments on commit 7d3d3e4

Please sign in to comment.