Skip to content

Commit

Permalink
oops, forgot that linux exists
Browse files Browse the repository at this point in the history
  • Loading branch information
million1156 committed Jan 23, 2025
1 parent 0e8f6d9 commit cbf939a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/modules/Metrics/svRuntime/perfUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const fetchFxsMemory = async (fxsPid?: number) => {
if (!fxsPid) return;
try {
const totalMem = (await si.mem()).total
const pidUsage = (await si.processLoad("fxServer.exe"))[0].mem /* Limitations only allow us to use process names to get memory */
const pidUsage = (await si.processLoad("fxServer"))[0].mem /* Limitations only allow us to use process names to get memory */
const memoryMb = (totalMem * (pidUsage / 100)) / (1024 * 1024);
return parseFloat((memoryMb).toFixed(2));

Expand Down

0 comments on commit cbf939a

Please sign in to comment.