From ed4d672ca96c53ca4b32701c4bd70ed6d08d69ba Mon Sep 17 00:00:00 2001 From: Yufeng Wang Date: Tue, 23 Nov 2021 15:47:53 -0800 Subject: [PATCH] [linux]: Fix reading TotalOperationalHours failure --- 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; } }