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

Commit 84a07da9 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 8605490 from ab26f860 to tm-d1-release

Change-Id: I8c070e7ddc81df1983001ad98c7ca6ab86696e51
parents 27f0e494 ab26f860
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -106,7 +106,11 @@ public class SlidingWindowEventCounter {
     * @return A string describing the anomaly event
     */
    public @NonNull String getFrequencyString() {
        return String.format("%d times within %d ms.", mNumOccurrences, mWindowSizeMillis);
        if (mWindowSizeMillis >= 1000L) {
            return mNumOccurrences + " times within " + mWindowSizeMillis / 1000L + " seconds";
        } else {
            return mNumOccurrences + " times within " + mWindowSizeMillis + "ms";
        }
    }

    @Override