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

Commit ab26f860 authored by Jack Yu's avatar Jack Yu
Browse files

Fixed the bugreport title

Convert milliseconds to seconds to improve
readabililty.

Fix: 232875484
Test: Manual
Change-Id: I88db1b05bf3fddd4699bc7af4fa3a1c17a974e59
parent b8a73751
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