fix(protocol): adjust extra_chunks calculation to use integer conversion of record_time

This commit is contained in:
2026-04-23 17:39:28 -04:00
parent aa2b02535b
commit bc9f16e503
+1 -1
View File
@@ -894,7 +894,7 @@ def device_event_blastware_file(
rectime = float(info.compliance_config.record_time or 1.0) rectime = float(info.compliance_config.record_time or 1.0)
except (AttributeError, TypeError, ValueError): except (AttributeError, TypeError, ValueError):
pass pass
extra_chunks = max(1, round(rectime * 2)) extra_chunks = max(1, int(rectime))
log.info("blastware_file: rectime=%.1fs → extra_chunks=%d", rectime, extra_chunks) log.info("blastware_file: rectime=%.1fs → extra_chunks=%d", rectime, extra_chunks)
events = client.get_events( events = client.get_events(
full_waveform=False, full_waveform=False,