Home
last modified time | relevance | path

Searched hist:"0253 f6d3" (Results 1 – 3 of 3) sorted by relevance

/openbmc/telemetry/tests/src/
H A Dtest_labeled_tuple.cpp0253f6d3 Thu Sep 15 16:18:19 CDT 2022 Szymon Dompke <szymon.dompke@intel.com> Persistency: store special double values

Json library handles infinity and NaN as null. During deserialization,
we expect a double and those files were marked as invalid and removed.
To prevent this behavior and preserve all double values, LabeledTuple
'to_json' and 'from_json' functions were improved to accommodate those
special values by using string literals.

Testing done:
- UTs added for double<=>json conversion.
- UTs passing.

Signed-off-by: Szymon Dompke <szymon.dompke@intel.com>
Change-Id: I9193df29cce1db28cda3c895d117d9f3bfca2c24
/openbmc/telemetry/src/utils/
H A Dlabeled_tuple.hpp0253f6d3 Thu Sep 15 16:18:19 CDT 2022 Szymon Dompke <szymon.dompke@intel.com> Persistency: store special double values

Json library handles infinity and NaN as null. During deserialization,
we expect a double and those files were marked as invalid and removed.
To prevent this behavior and preserve all double values, LabeledTuple
'to_json' and 'from_json' functions were improved to accommodate those
special values by using string literals.

Testing done:
- UTs added for double<=>json conversion.
- UTs passing.

Signed-off-by: Szymon Dompke <szymon.dompke@intel.com>
Change-Id: I9193df29cce1db28cda3c895d117d9f3bfca2c24
/openbmc/telemetry/tests/
H A Dmeson.build0253f6d3 Thu Sep 15 16:18:19 CDT 2022 Szymon Dompke <szymon.dompke@intel.com> Persistency: store special double values

Json library handles infinity and NaN as null. During deserialization,
we expect a double and those files were marked as invalid and removed.
To prevent this behavior and preserve all double values, LabeledTuple
'to_json' and 'from_json' functions were improved to accommodate those
special values by using string literals.

Testing done:
- UTs added for double<=>json conversion.
- UTs passing.

Signed-off-by: Szymon Dompke <szymon.dompke@intel.com>
Change-Id: I9193df29cce1db28cda3c895d117d9f3bfca2c24