Cast RestartCount to Size_t to Match Property Type

restartCount variable is a size_t and the property is registered as
a size_t. However since the DBusVariant returned from systemd to
find a process's restart count was uint32_t, it is crashing on some
machines.

With this cast to size_t, the crash does not happen anymore.

Tested:
Ran and left metric-collector on. It seems to collect restartCount
without the std::bad_any_cast crash.

Change-Id: Icfe180c9c9ed7b53c543215a5d895ff4f879219c
Signed-off-by: Edward Lee <edwarddl@google.com>
1 file changed
tree: afa6cde27480afdb430dbe8b98432ba67380a30d
  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.