- add int64 data type to info parser

This commit is contained in:
Stefan Allius
2023-11-07 00:19:48 +01:00
parent 942e17d7c3
commit 02861f70af
2 changed files with 5 additions and 0 deletions

View File

@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
- add int64 data type to info parser
## [0.5.1] - 2023-11-05
- fixes f-string by limes007

View File

@@ -341,6 +341,9 @@ class Infos:
elif data_type == 0x46: # 'F' -> float32
result = round(struct.unpack_from('!f', buf, ind)[0], 2)
ind += 4
elif data_type == 0x4c: # 'L' -> int64
result = struct.unpack_from('!q', buf, ind)[0]
ind += 8
else:
self.inc_counter('Invalid_Data_Type')
logging.error(f"Infos.parse: data_type: {data_type}"