Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ee5584cd authored by Adam Lesinski's avatar Adam Lesinski Committed by Android Git Automerger
Browse files

am eb1356cc: am 3bdbda78: am dd0238ec: am e54253bd: Merge "Fix crash when no...

am eb1356cc: am 3bdbda78: am dd0238ec: am e54253bd: Merge "Fix crash when no power_profile is specified" into mnc-dr-dev

* commit 'eb1356cc':
  Fix crash when no power_profile is specified
parents 848e0088 eb1356cc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ public class KernelCpuSpeedReader {
            TextUtils.SimpleStringSplitter splitter = new TextUtils.SimpleStringSplitter(' ');
            String line;
            int speedIndex = 0;
            while ((line = reader.readLine()) != null) {
            while (speedIndex < mLastSpeedTimes.length && (line = reader.readLine()) != null) {
                splitter.setString(line);
                Long.parseLong(splitter.next());

+1 −1
Original line number Diff line number Diff line
@@ -137,7 +137,7 @@ public class KernelUidCpuTimeReader {
                mLastPowerMaUs.put(uid, powerMaUs);
            }
        } catch (IOException e) {
            Slog.e(TAG, "Failed to read uid_cputime", e);
            Slog.e(TAG, "Failed to read uid_cputime: " + e.getMessage());
        }
        mLastTimeReadUs = nowUs;
    }