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

Commit 3882a5bb authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Shore up dividing by zero protections."

parents 99e5744b a7be8da9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -187,6 +187,7 @@ public class NetworkStatsCollection implements FileRotator.Reader {
     */
    @VisibleForTesting
    public static long multiplySafe(long value, long num, long den) {
        if (den == 0) den = 1;
        long x = value;
        long y = num;