fix: droiddeckctl pacing reads timestats dumps with Windows line ends (#2186)

This commit is contained in:
Jordan Y authored and GitHub committed 2026-11-07 08:23:06 -05:00
1 parent aba55031c3
commit 7c429f3a26
2 files changed
+6

No files matched your search

+1
View File
@@ -295,6 +295,7 @@ def record(adb: str, serial: str, path: str, seconds: float, display: int | None
def pacing_summary(text: str, package: str = PACKAGE) -> dict:
text = text.replace("\r\n", "\n")
records = {"game": [], "surface": []}
for part in re.split(r"^displayRefreshRate = ", text, flags=re.M)[1:]:
rate = re.match(r"(\d+)", part)