From 91d4330202c4c6ce005d3c56b230ee5ce376933d Mon Sep 17 00:00:00 2001 From: Yi Jin Date: Thu, 12 Apr 2018 11:06:57 -0700 Subject: [PATCH] Reduce disk space limit for incident reports. Bug: 77963176 Test: atest incidentd_test and manual Change-Id: I8ad1d10fcd40ff556255ac27c049265e79c7d558 --- cmds/incidentd/src/Reporter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmds/incidentd/src/Reporter.cpp b/cmds/incidentd/src/Reporter.cpp index 103004da36571..297a0711f6867 100644 --- a/cmds/incidentd/src/Reporter.cpp +++ b/cmds/incidentd/src/Reporter.cpp @@ -106,8 +106,7 @@ Reporter::Reporter() : Reporter(INCIDENT_DIRECTORY) { isTest = false; }; Reporter::Reporter(const char* directory) : batch() { char buf[100]; - // TODO: Make the max size smaller for user builds. - mMaxSize = 100 * 1024 * 1024; + mMaxSize = 30 * 1024 * 1024; // incident reports can take up to 30MB on disk mMaxCount = 100; // string ends up with '/' is a directory