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
This commit is contained in:
Rafal Slawik
2021-03-11 13:35:17 +00:00
parent b713847036
commit 03b473db35

View File

@@ -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));
}