Update Indexes of parsing /proc/pid/stat file

Incorrect assumption that Split() utility function combined the first
and second section of the /proc/pid/stat file has caused incorrect
metrics to be exported by the daemon.

Fixing the indexes to match up

Tested:
Queried a daemon's dbus object and matched it up with its stat file
and ensured that all the metrics are valid and correct.

Change-Id: I5d2ab47c4cac32282c5605e10ea84043d7063253
Signed-off-by: Edward Lee <edwarddl@google.com>
1 file changed
tree: cd213e851ecc844d4ec5dcced4cb2d9ec2e7cd3f
  1. conf/
  2. dynamic-layers/
  3. meta-nuvoton-npcm8xx/
  4. recipes-bsp/
  5. recipes-connectivity/
  6. recipes-core/
  7. recipes-devtools/
  8. recipes-extended/
  9. recipes-google/
  10. recipes-kernel/
  11. recipes-phosphor/
  12. LICENSE
  13. README.md
README.md

meta-gbmc-staging

This repository contains additions to the openbmc/meta-google layer that are not yet ready for OpenBMC inclusion.

How to use this layer

  1. Clone openbmc/openbmc from GitHub.
  2. Clone this layer from GitHub into a subdirectory of openbmc.