forked from mindspore-Ecosystem/mindspore
skip if hwts data is less than 64
This commit is contained in:
parent
5db0e92794
commit
44defdc265
|
@ -77,6 +77,9 @@ class HWTSLogParser:
|
|||
if line:
|
||||
if not line.strip():
|
||||
continue
|
||||
if len(line) < 64:
|
||||
logger.warning("Length of hwts data is less than 64")
|
||||
continue
|
||||
else:
|
||||
break
|
||||
byte_first_four = struct.unpack('BBHHH', line[0:8])
|
||||
|
|
Loading…
Reference in New Issue