From 3221680024805e1c5697b8ca8342b237dde5f2cb Mon Sep 17 00:00:00 2001 From: Yufeng Wang Date: Wed, 24 Nov 2021 05:33:17 -0800 Subject: [PATCH] [linux]: Fix reading TotalOperationalHours failure (#12187) --- src/platform/Linux/DiagnosticDataProviderImpl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/platform/Linux/DiagnosticDataProviderImpl.cpp b/src/platform/Linux/DiagnosticDataProviderImpl.cpp index c40818ceb5ad22..53f05524a4d354 100644 --- a/src/platform/Linux/DiagnosticDataProviderImpl.cpp +++ b/src/platform/Linux/DiagnosticDataProviderImpl.cpp @@ -349,6 +349,7 @@ CHIP_ERROR DiagnosticDataProviderImpl::GetTotalOperationalHours(uint32_t & total { VerifyOrReturnError(upTime / 3600 <= UINT32_MAX, CHIP_ERROR_INVALID_INTEGER_VALUE); totalOperationalHours = totalHours + static_cast(upTime / 3600); + return CHIP_NO_ERROR; } }