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

Commit 03b473db authored by Rafal Slawik's avatar Rafal Slawik
Browse files

Fix: pass frequency as int

Frequency should be passed as an int to match the field type declared in
the atom.

Bug: 182375361
Test: existing tests pass
Test: atest CpuStatsTests
Test: cmd stats pull-source 10095
Change-Id: I6ef06874dd8acafa74def4dae7035c9bf3cd764d
parent b7138470
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1479,7 +1479,7 @@ public class StatsPullAtomService extends SystemService {
        }
        for (int freqIndex = 0; freqIndex < timesMs.length; ++freqIndex) {
            int cluster = freqsClusters[freqIndex];
            long freq = freqs[freqIndex];
            int freq = (int) freqs[freqIndex];
            long timeMs = timesMs[freqIndex];
            pulledData.add(FrameworkStatsLog.buildStatsEvent(atomTag, cluster, freq, timeMs));
        }