I have been trying to resolve why the node.js os module returns what appears to be half of the maximum processor speed. For example on a raspberry pi 4, the maximum processor speed is 1500, but as noted the os module reports only 750. I know for a fact this is not the current frequency which is 600:
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
var theOS = require('os');
var theProcessors = theOS.cpus();
Buried in object structure returned in theProcessors variable...
model: "ARMv7 Processor rev 3 (v7l)"
Anyone know why this is the case?