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