Skip to content

Commit

Permalink
Merge pull request #2 from LindirQuenya/fix-arch-reporting
Browse files Browse the repository at this point in the history
Report actual architecture, not compiled architecture.
  • Loading branch information
colin969 authored Aug 3, 2022
2 parents 385f0e5 + 0134874 commit a477b2d
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
25 changes: 25 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"watch": "webpack --mode development --watch"
},
"dependencies": {
"arch": "^2.2.0",
"axios": "^0.27.2",
"open": "^8.0.7",
"ts-debounce": "^2.0.1",
Expand Down
3 changes: 2 additions & 1 deletion src/ext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import * as fs from 'fs';
import * as os from 'os';
import axios from 'axios';
import { URL } from 'url';
import arch from 'arch';

let session: Session | undefined;

Expand Down Expand Up @@ -79,7 +80,7 @@ export async function activate(context: flashpoint.ExtensionContext) {
else if (totalmem > 2147400000) { simplifiedTotalMem = '>= 2GB < 4GB'; }
else if (totalmem > 10000) { simplifiedTotalMem = '< 2GB'; }
Promise.all([
session.event('Hardware', 'arch', os.arch()),
session.event('Hardware', 'arch', arch()),
session.event('Hardware', 'operatingSystem', os.version()),
session.event('Hardware', 'memory', simplifiedTotalMem)
])
Expand Down

0 comments on commit a477b2d

Please sign in to comment.