slabtop: total slabs & caches header fix

Commit 0ac63f5bc1 messed up header
print order; the Total Slabs and Total Caches where reported in place
of each other.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2012-01-05 19:39:41 +01:00 committed by Craig Small
parent 26f2deac52
commit bb142f7aa6

View File

@ -363,11 +363,11 @@ int main(int argc, char *argv[])
stats.nr_active_objs, stats.nr_objs, stats.nr_active_objs, stats.nr_objs,
100.0 * stats.nr_active_objs / stats.nr_objs, 100.0 * stats.nr_active_objs / stats.nr_objs,
_("Active / Total Slabs (% used)"), _("Active / Total Slabs (% used)"),
stats.nr_active_caches, stats.nr_caches,
100.0 * stats.nr_active_caches / stats.nr_caches,
_("Active / Total Caches (% used)"),
stats.nr_active_slabs, stats.nr_slabs, stats.nr_active_slabs, stats.nr_slabs,
100.0 * stats.nr_active_slabs / stats.nr_slabs, 100.0 * stats.nr_active_slabs / stats.nr_slabs,
_("Active / Total Caches (% used)"),
stats.nr_active_caches, stats.nr_caches,
100.0 * stats.nr_active_caches / stats.nr_caches,
_("Active / Total Size (% used)"), _("Active / Total Size (% used)"),
stats.active_size / 1024.0, stats.total_size / 1024.0, stats.active_size / 1024.0, stats.total_size / 1024.0,
100.0 * stats.active_size / stats.total_size, 100.0 * stats.active_size / stats.total_size,