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

Commit adc238a9 authored by Yu Shan Emily Lau's avatar Yu Shan Emily Lau
Browse files

Fix the bug that it should write the zero diff to the output file when the actual diff is negative.

Change-Id: I5d7c12b0ad9c0286658067cacb7f385626a3107f
parent d3d9b85e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -395,9 +395,9 @@ public class MediaPlayerPerformance extends ActivityInstrumentationTestCase<Medi
        Thread.sleep(10000);
        mEndPid = getMediaserverPid();
        int memDiff = mEndMemory - startMemory;
        if (memDiff < 0)
        if (memDiff < 0) {
            memDiff = 0;
        else
        }
        output.write("The total diff = " + memDiff);
        output.write("\n\n");
        // mediaserver crash