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>
(cherry picked from commit 055dfc1aa21a77a850d6f6bf491ad30d0e5deef4)
1 file changed
tree: d0cf6bfd4bd3d8df06847d83455fc926c43b51e8
  1. conf/
  2. dynamic-layers/
  3. meta-nuvoton-npcm8xx/
  4. recipes-connectivity/
  5. recipes-core/
  6. recipes-devtools/
  7. recipes-extended/
  8. recipes-google/
  9. recipes-kernel/
  10. recipes-phosphor/
  11. LICENSE
  12. 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.