A few fixes for the per-process load average calculation

This commit is contained in:
Gregory Nutt
2014-02-23 12:50:51 -06:00
parent cf4a362ab5
commit 3b2a3991dd
5 changed files with 76 additions and 59 deletions
+1 -1
View File
@@ -573,7 +573,7 @@ static ssize_t proc_loadavg(FAR struct proc_file_s *procfile,
{
uint32_t tmp;
tmp = 1000 - (1000 * cpuload.active) / cpuload.total;
tmp = (1000 * cpuload.active) / cpuload.total;
intpart = tmp / 10;
fracpart = tmp - 10 * intpart;
}