Commits

Ahmad Khayyat committed da63ebb

screen: status line: include nice in cpu usage

Comments (0)

Files changed (1)

screen/screen-stats.awk

         # cpu
         getline < cpufile;
         u=$2-up; n=$3-np; s=$4-sp; i=$5-ip; w=$6-wp; q=$7-qp; f=$8-fp;
-        cpu = sprintf("%3.0f",(u+s)/(u+n+s+i+w+q+f)*100);
+        cpu = sprintf("%3.0f",(u+n+s)/(u+n+s+i+w+q+f)*100);
         up=$2;np=$3;sp=$4;ip=$5;wp=$6;qp=$7;fp=$8;
         close(cpufile);