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

Commit 2fb3dd6f authored by Kevin Jeon's avatar Kevin Jeon
Browse files

Reduce timeout for DUMP NETSTATS PROTO

This change reduces the timeout on 'dumpsys netstats --proto' from 120s
to 5s. This is because go/bugreport-durations shows that the DUMP
NETSTATS PROTO is always under 1s unless it stalls, in which case it
will always hit the timeout.

Ignore-AOSP-First: The netstats section only exists on internal builds.
Test: Collect a bug report with 'adb bugreportz' to verify that the
      'DUMP NETSTATS PROTO' section still exists.
Bug: 249522178
Change-Id: I377bdb0ea61b53e76b6329fc52d634d1c2c0b0ad
parent d9858770
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1049,7 +1049,7 @@ static void DumpNetstatsProto() {
        return;
    }
    RunCommandToFd(fd, "", {"dumpsys", "netstats", "--proto"},
            CommandOptions::WithTimeout(120).Build());
            CommandOptions::WithTimeout(5).Build());
    bool empty = 0 == lseek(fd, 0, SEEK_END);
    if (!empty) {
        ds.EnqueueAddZipEntryAndCleanupIfNeeded(kProtoPath + "netstats" + kProtoExt,