This reverts commit
52cf500b2f5cbe16f991990d50ec990ab9540b97.
The previous commit was causing the allocated pages reported by the
'-s' option to be doubled. That is clearly wrong.
As I can not remember anymore what I was thinking when I wrote the
commit and I can only see how wrong it is, I see no reason to not
revert it.
Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
af.map = map;
count_pages(root, &af);
- map->pages_present += af.pages_present;
- map->pages_swapped += af.pages_swapped;
+ map->pages_present = af.pages_present;
+ map->pages_swapped = af.pages_swapped;
}
biggest = MAX(biggest, map->pages_present + map->pages_swapped);