You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Crashes application when running in docker on alpine
To Reproduce
Steps to reproduce the behavior:
used getCpuCurrentSpeedSync()
Current Output
/app/node_modules/systeminformation/lib/cpu.js:1017
cores.push(parseFloat(speeds[i].toFixed(2)));
^
TypeError: speeds[i].toFixed is not a function
at getCpuCurrentSpeedSync (/app/node_modules/systeminformation/lib/cpu.js:1017:39)
at /app/node_modules/systeminformation/lib/cpu.js:748:31
at ChildProcess.exithandler (node:child_process:414:7)
at ChildProcess.emit (node:events:518:28)
at maybeClose (node:internal/child_process:1104:16)
at ChildProcess._handle.onexit (node:internal/child_process:304:5)
Expected behavior
To not crash
Environment (please complete the following information):
systeminformation package version: 5.25.11
OS: node:20-alpine
Hardware: ARM CPU on in KVM VM inside Docker
To get all needed environment information, please run the following command:
Additional context
The function runs cat /proc/cpuinfo | grep "cpu MHz" | cut -d " " -f 3
This outputs nothing, so here is just the /proc/cpuinfo output
cat /proc/cpuinfo
processor : 0
BogoMIPS : 50.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x3
CPU part : 0xd0c
CPU revision : 1
processor : 1
BogoMIPS : 50.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x3
CPU part : 0xd0c
CPU revision : 1
processor : 2
BogoMIPS : 50.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x3
CPU part : 0xd0c
CPU revision : 1
processor : 3
BogoMIPS : 50.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x3
CPU part : 0xd0c
CPU revision : 1
processor : 4
BogoMIPS : 50.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x3
CPU part : 0xd0c
CPU revision : 1
processor : 5
BogoMIPS : 50.00
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x3
CPU part : 0xd0c
CPU revision : 1
The text was updated successfully, but these errors were encountered:
Describe the bug
Crashes application when running in docker on alpine
To Reproduce
Steps to reproduce the behavior:
Current Output
/app/node_modules/systeminformation/lib/cpu.js:1017
cores.push(parseFloat(speeds[i].toFixed(2)));
^
TypeError: speeds[i].toFixed is not a function
at getCpuCurrentSpeedSync (/app/node_modules/systeminformation/lib/cpu.js:1017:39)
at /app/node_modules/systeminformation/lib/cpu.js:748:31
at ChildProcess.exithandler (node:child_process:414:7)
at ChildProcess.emit (node:events:518:28)
at maybeClose (node:internal/child_process:1104:16)
at ChildProcess._handle.onexit (node:internal/child_process:304:5)
Expected behavior
To not crash
Environment (please complete the following information):
To get all needed environment information, please run the following command:
Additional context
The function runs
cat /proc/cpuinfo | grep "cpu MHz" | cut -d " " -f 3
This outputs nothing, so here is just the /proc/cpuinfo output
The text was updated successfully, but these errors were encountered: