~aleteoryx/muditaos

7fff20a0e7e45ec2b30b9b8682a92b63c17179dc — Maciej-Mudita 3 years ago b281a39
[MOS-788] Fix incorrect total CPU usage in logs

After a long time, a counter overflow appeared
2 files changed, 2 insertions(+), 1 deletions(-)

M module-sys/SystemManager/PowerManager.cpp
M pure_changelog.md
M module-sys/SystemManager/PowerManager.cpp => module-sys/SystemManager/PowerManager.cpp +1 -1
@@ 32,7 32,7 @@ namespace sys
    [[nodiscard]] auto CpuFrequencyMonitor::GetTotalRuntimePercentage(
        const TickType_t totalTicksIncrease) const noexcept -> std::uint32_t
    {
        return totalTicksIncrease == 0 ? 0 : ((totalTicksCount * 100) / totalTicksIncrease);
        return totalTicksIncrease == 0 ? 0 : ((static_cast<std::uint64_t>(totalTicksCount) * 100) / totalTicksIncrease);
    }

    [[nodiscard]] auto CpuFrequencyMonitor::GetPeriodRuntimePercentage(

M pure_changelog.md => pure_changelog.md +1 -0
@@ 12,6 12,7 @@
* Fixed MTP issues

### Fixed
* Fixed incorrect total CPU usage in logs
* Fixed wrong time displayed on password locked screen with 'Quotes' or 'Logo' wallpaper
* Fixed access to the phone before going onboarding
* Fixed receiving an empty SMS message