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