Skip to content

Commit

Permalink
relax log sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
Comma Device committed Feb 12, 2025
1 parent 2469fdc commit 9c893c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions selfdrive/test/test_onroad.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
TEST_DURATION = 25
LOG_OFFSET = 8

MAX_TOTAL_CPU = 275. # total for all 8 cores
MAX_TOTAL_CPU = 280. # total for all 8 cores
PROCS = {
# Baseline CPU usage by process
"selfdrive.controls.controlsd": 16.0,
Expand Down Expand Up @@ -217,7 +217,7 @@ def test_log_sizes(self, subtests):
for f, sz in self.log_sizes.items():
rate = LOGS_SIZE[f.name]/60.
minn = rate * TEST_DURATION * 0.5
maxx = rate * TEST_DURATION * 1.2
maxx = rate * TEST_DURATION * 1.5
with subtests.test(file=f.name):
assert minn < sz < maxx

Expand Down

0 comments on commit 9c893c2

Please sign in to comment.