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

Commit 91d43302 authored by Yi Jin's avatar Yi Jin
Browse files

Reduce disk space limit for incident reports.

Bug: 77963176
Test: atest incidentd_test and manual
Change-Id: I8ad1d10fcd40ff556255ac27c049265e79c7d558
parent f6fb0fc0
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -106,8 +106,7 @@ Reporter::Reporter() : Reporter(INCIDENT_DIRECTORY) { isTest = false; };
Reporter::Reporter(const char* directory) : batch() {
Reporter::Reporter(const char* directory) : batch() {
    char buf[100];
    char buf[100];


    // TODO: Make the max size smaller for user builds.
    mMaxSize = 30 * 1024 * 1024;  // incident reports can take up to 30MB on disk
    mMaxSize = 100 * 1024 * 1024;
    mMaxCount = 100;
    mMaxCount = 100;


    // string ends up with '/' is a directory
    // string ends up with '/' is a directory