Fix out-of-bound index and clean up code.
There was an out-of-bound index after something like 7.5 hours of
active use. This probably caused the metrics daemon to restart
and pollute some of the memuse statistics, the very ones
responsible for the overflow.
TEST=ran manually and verified memuse is still reported
Reviewed-by: Luigi Semenzato <email@example.com>
Commit-Queue: Luigi Semenzato <firstname.lastname@example.org>
Tested-by: Luigi Semenzato <email@example.com>
2 files changed