Skip to content

Commit

Permalink
Fix memory and arch info
Browse files Browse the repository at this point in the history
  • Loading branch information
Levminer committed May 3, 2023
1 parent 4e50030 commit 5a2f746
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions interface/windows/settings/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const about = async () => {
const tauriVersion = await app.getTauriVersion()
const osVersion = await os.version()
const browser = new UAParser().getBrowser()
const osArch = (await os.arch()).replace("x86_64", "x64")
const osArch = (await os.arch()).replace("x86_64", "x64").replace("aarch64", "arm64")

// Browser version
const browserName = browser.name.replace("Edge", "Chromium").replace("Safari", "WebKit")
Expand All @@ -25,7 +25,7 @@ export const about = async () => {
.replaceAll("(R)", "")
.replaceAll("(TM)", "")
.replace(/ +(?= )/g, "")
const memory = `${Math.round(parseInt(hardware[2]) / 1024 / 1024)} GB`
const memory = `${Math.round(parseInt(hardware[2]) / 1024 / 1024 / 1024)} GB`
const osName = hardware[0]

const info = `Authme: ${build.version} \n\nTauri: ${tauriVersion}\n${browserName}: ${browserVersion}\n\nOS version: ${osName} ${osArch} ${osVersion}\nHardware info: ${cpu} ${memory} RAM\n\nRelease date: ${build.date}\nBuild number: ${build.number}\n\nCreated by: Lőrik Levente`
Expand Down

0 comments on commit 5a2f746

Please sign in to comment.