Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dbus] Try to avoid reporting negative suspend time. Fixes JB#44904
If device does not suspend at all, querying suspend stats from mce can yield (small, but) negative suspend time - which is confusing. Suspend time is calculated by subtracting active time from uptime. Get subtrahend before minuend - so that if the time values should increase in between timer reads, the error is to positive direction. Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information