diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-02-23 12:50:51 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-02-23 12:50:51 -0600 |
commit | c175995faefdef0a7ae00eb50563886db9f3a991 (patch) | |
tree | cedd6861196ae4599c53d60ce095e4dfe65b6ee9 /nuttx/fs | |
parent | 7c745cd460ea7361719b9fd18a35491beed92623 (diff) | |
download | px4-nuttx-c175995faefdef0a7ae00eb50563886db9f3a991.tar.gz px4-nuttx-c175995faefdef0a7ae00eb50563886db9f3a991.tar.bz2 px4-nuttx-c175995faefdef0a7ae00eb50563886db9f3a991.zip |
A few fixes for the per-process load average calculation
Diffstat (limited to 'nuttx/fs')
-rw-r--r-- | nuttx/fs/procfs/fs_procfsproc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/fs/procfs/fs_procfsproc.c b/nuttx/fs/procfs/fs_procfsproc.c index a1ec1b898..0782479b0 100644 --- a/nuttx/fs/procfs/fs_procfsproc.c +++ b/nuttx/fs/procfs/fs_procfsproc.c @@ -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; } |