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

Commit 05980bb2 authored by Yao Chen's avatar Yao Chen Committed by android-build-merger
Browse files

Increase the size limit of incident reports.

am: 31829672

Change-Id: I26ac01cdaba96348609ab675a28c834da0319c8a
parents f5cb9306 31829672
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ namespace os {
namespace incidentd {

const ssize_t BUFFER_SIZE = 16 * 1024;  // 16 KB
const ssize_t MAX_BUFFER_COUNT = 1536;   // 24 MB max
const ssize_t MAX_BUFFER_COUNT = 6144;   // 96 MB max

FdBuffer::FdBuffer()
        :mBuffer(new EncodedBuffer(BUFFER_SIZE)),
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ enum {

#define DEFAULT_DELAY_NS (1000000000LL)

#define DEFAULT_BYTES_SIZE_LIMIT (20 * 1024 * 1024)        // 20MB
#define DEFAULT_BYTES_SIZE_LIMIT (96 * 1024 * 1024)        // 96MB
#define DEFAULT_REFACTORY_PERIOD_MS (24 * 60 * 60 * 1000)  // 1 Day

// Skip these sections for dumpstate only. Dumpstate allows 10s max for each service to dump.
+1 −1
Original line number Diff line number Diff line
@@ -498,7 +498,7 @@ status_t ReportFile::load_envelope_impl(bool cleanup) {
WorkDirectory::WorkDirectory()
        :mDirectory("/data/misc/incidents"),
         mMaxFileCount(100),
         mMaxDiskUsageBytes(30 * 1024 * 1024) {  // Incident reports can take up to 30MB on disk.
         mMaxDiskUsageBytes(100 * 1024 * 1024) {  // Incident reports can take up to 100MB on disk.
                                                 // TODO: Should be a flag.
    create_directory(mDirectory.c_str());
}
+0 −1

File deleted.

Preview size limit exceeded, changes collapsed.

+0 −0

File added.

Preview suppressed by a .gitattributes entry or the file's encoding is unsupported.

Loading