Skip to content

Commit a477b2d

Browse files
authored
Merge pull request #2 from LindirQuenya/fix-arch-reporting
Report actual architecture, not compiled architecture.
2 parents 385f0e5 + 0134874 commit a477b2d

3 files changed

Lines changed: 28 additions & 1 deletion

File tree

package-lock.json

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
"watch": "webpack --mode development --watch"
6666
},
6767
"dependencies": {
68+
"arch": "^2.2.0",
6869
"axios": "^0.27.2",
6970
"open": "^8.0.7",
7071
"ts-debounce": "^2.0.1",

src/ext.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import * as fs from 'fs';
66
import * as os from 'os';
77
import axios from 'axios';
88
import { URL } from 'url';
9+
import arch from 'arch';
910

1011
let session: Session | undefined;
1112

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

0 commit comments

Comments
 (0)