Skip to content
Permalink
Browse files

Rewrite nems-stress to output averages, add frequency

  • Loading branch information...
NEMS Linux
NEMS Linux committed Sep 3, 2019
1 parent 0dbb741 commit 01244392f15ed07093e65414cb5c5dd119478e15
Showing with 7 additions and 0 deletions.
  1. +7 −0 info.sh
@@ -320,6 +320,13 @@ grep 'cpu ' /proc/stat | awk '{usage=($2+$4)*100/($2+$4+$5)} END {print usage}'
elif [[ $COMMAND == "temperature" ]]; then
/usr/local/share/nems/nems-scripts/info2.sh 1

elif [[ $COMMAND == "frequency" ]]; then
if [[ -e /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq ]]; then
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
else
echo 0
fi

elif [[ $COMMAND == "nemsbranch" ]]; then
/usr/local/share/nems/nems-scripts/info2.sh 2

0 comments on commit 0124439

Please sign in to comment.
You can’t perform that action at this time.