Fix dumpsys timeout regression
Bug: 69974956
Test: adb bugreport ~/tmp.zip
Change-Id: I833937de55c780773d946ef36a5105e544940bfa
diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp
index aba08d9..4b67d8f 100644
--- a/cmds/dumpstate/dumpstate.cpp
+++ b/cmds/dumpstate/dumpstate.cpp
@@ -1085,7 +1085,7 @@
CommandOptions::WithTimeout(90).DropRoot().Build());
} else {
RunDumpsys("DUMPSYS", {"--skip", "meminfo", "cpuinfo"},
- CommandOptions::WithTimeout(90).Build(), 10);
+ CommandOptions::WithTimeout(90).Build(), SEC_TO_MSEC(10));
}
}
@@ -1307,8 +1307,10 @@
printf("== Android Framework Services\n");
printf("========================================================\n");
- RunDumpsys("DUMPSYS", {"connectivity"}, CommandOptions::WithTimeout(90).Build(), 10);
- RunDumpsys("DUMPSYS", {"carrier_config"}, CommandOptions::WithTimeout(90).Build(), 10);
+ RunDumpsys("DUMPSYS", {"connectivity"}, CommandOptions::WithTimeout(90).Build(),
+ SEC_TO_MSEC(10));
+ RunDumpsys("DUMPSYS", {"carrier_config"}, CommandOptions::WithTimeout(90).Build(),
+ SEC_TO_MSEC(10));
printf("========================================================\n");
printf("== Running Application Services\n");