Revert "bprocps: fix order of operations for %use of slabinfo"

This reverts commit 99d71ad581.

When nr_active_objs / nr_objs is calculated, the result will be 1
or 0 since the variables are integer. So the commit is wrong.
This commit is contained in:
Takayuki Nagata 2016-07-27 17:29:15 +09:00
parent 98ed114c26
commit 636b48efd8

View File

@ -179,7 +179,7 @@ static int parse_slabinfo20(struct slab_info **list, struct slab_stat *stats,
curr->cache_size = (unsigned long)curr->nr_slabs * curr->pages_per_slab * page_size;
if (curr->nr_objs) {
curr->use = 100 * (curr->nr_active_objs / curr->nr_objs);
curr->use = 100 * curr->nr_active_objs / curr->nr_objs;
stats->nr_active_caches++;
} else
curr->use = 0;