#
fbf4703f |
| 17-Jul-2023 |
Patrick Williams <patrick@stwcx.xyz> |
use std::format instead of fmt::format
The std::format is sufficient for the uses in this repository except for in one file (override_fan_target.cpp, since P2286 isn't supported by GCC yet). Switch
use std::format instead of fmt::format
The std::format is sufficient for the uses in this repository except for in one file (override_fan_target.cpp, since P2286 isn't supported by GCC yet). Switch to std::format whenever possible.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ib2576fb530a4d7ce238e1b0bd95b40b476ec2107
show more ...
|
#
61b73296 |
| 10-May-2023 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest .clang-format from the docs repository and reformat the repository.
Change-Id: I152f141a5e8343b92b5ce81d3ca16eec77b5606b Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
a899aa0c |
| 12-May-2022 |
Matt Spinler <spinler@us.ibm.com> |
sensor-monitor: Missing includes
The sensor-monitor app doesn't compile by default so some missing includes were missed. Add them.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I2d71
sensor-monitor: Missing includes
The sensor-monitor app doesn't compile by default so some missing includes were missed. Add them.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I2d7160df6b3168d1e567b5fe16ffb29627e3c928
show more ...
|
#
0a56d459 |
| 25-Jan-2022 |
George Liu <liuxiwei@inspur.com> |
Fix loading json file causing coredump
If the json file is damaged, when the process is running and deserializing, a coredump will occur and a ereal::RapidJSONException will be thrown.
Signed-off-b
Fix loading json file causing coredump
If the json file is damaged, when the process is running and deserializing, a coredump will occur and a ereal::RapidJSONException will be thrown.
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I601865e796d50241262edf0fdb09935e4e1b93e2
show more ...
|
#
08a66efa |
| 21-Jan-2021 |
Matt Spinler <spinler@us.ibm.com> |
sensor-mon: Persist timer start times
It's possible that while a shutdown timer is running, this app or the whole BMC may restart. In that case, we want to restart the timer with only the remaining
sensor-mon: Persist timer start times
It's possible that while a shutdown timer is running, this app or the whole BMC may restart. In that case, we want to restart the timer with only the remaining time, assuming the alarm is still active.
To do this, create a new AlarmTimestamps class to hold any running timer start times and persist these times using the cereal library. If the application is restarted with timestamps written out and the alarm is initially active and power is on, then the shutdown timer will be calculated to be: delay = shutdownDelay - (now - original time)
Note that cereal doesn't know how to handle the AlarmType or ShutdownType types so they are converted to ints before writing.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: If07abe91c0e6951fcd74bbc49eb511a38f7b4006
show more ...
|