metric-collector: Fix size_t vs. uint64_t issue

The size_t on gBMC might not always be 8 bytes. It is 4 bytes in this
case and causes overflow on reading LastReboot time. This resulted in
the reboot count increasing every time the daemon restarts.

Tested:
Restart the metric-collector daemon doesn't increase reboot count now.

Google-Bug-Id: 313338463
Change-Id: I47425b9303e656d5230b98465c6644cc0ea5f488
Signed-off-by: Willy Tu <wltu@google.com>
(cherry picked from commit f7033258f37fb9299196d11c5f91fc66acfffdbc)
1 file changed
tree: 60cd5bb10affedd0ae93a444c54956db4f701997
  1. conf/
  2. dynamic-layers/
  3. recipes-bsp/
  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.