Skip to content

Commit

Permalink
[linux]: Fix reading TotalOperationalHours failure (#12187)
Browse files Browse the repository at this point in the history
  • Loading branch information
yufengwangca authored Nov 24, 2021
1 parent 3872a50 commit 8f73103
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/platform/Linux/DiagnosticDataProviderImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<uint32_t>(upTime / 3600);
return CHIP_NO_ERROR;
}
}

Expand Down

0 comments on commit 8f73103

Please sign in to comment.