Searched hist:"0253 f6d3" (Results 1 – 3 of 3) sorted by relevance
/openbmc/telemetry/tests/src/ |
H A D | test_labeled_tuple.cpp | 0253f6d3 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 D | labeled_tuple.hpp | 0253f6d3 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 D | meson.build | 0253f6d3 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
|