explicitly set to invalid

This commit is contained in:
Adeeb Shihadeh 2023-12-02 10:52:02 -08:00
parent 3038eacad1
commit 8cbd294489
1 changed files with 1 additions and 0 deletions

View File

@ -43,6 +43,7 @@ def log_from_bytes(dat: bytes) -> capnp.lib.capnp._DynamicStructReader:
def new_message(service: str, size: Optional[int] = None) -> capnp.lib.capnp._DynamicStructBuilder:
dat = log.Event.new_message()
dat.valid = False
dat.logMonoTime = int(time.monotonic() * 1e9)
if size is None:
dat.init(service)