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 <firstname.lastname@example.org>
Commit-Queue: Luigi Semenzato <email@example.com>
Tested-by: Luigi Semenzato <firstname.lastname@example.org>
2 files changed