Skip to content

Commit

Permalink
Report actual architecture, not compiled architecture.
Browse files Browse the repository at this point in the history
  • Loading branch information
LindirQuenya committed Aug 2, 2022

Verified

This commit was signed with the committer’s verified signature.
Blarse Egor Ignatov
1 parent 385f0e5 commit 0134874
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
@@ -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",
3 changes: 2 additions & 1 deletion src/ext.ts
Original file line number Diff line number Diff line change
@@ -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;

@@ -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)
])

0 comments on commit 0134874

Please sign in to comment.