pikvm/pikvm#1347: added CPU and MEM to /api/info

This commit is contained in:
Maxim Devaev
2024-07-08 04:34:32 +03:00
parent 01fff2c7a9
commit eb1eb527f8
3 changed files with 54 additions and 6 deletions

View File

@@ -384,7 +384,7 @@ def _get_config_scheme() -> dict:
"hw": {
"vcgencmd_cmd": Option(["/usr/bin/vcgencmd"], type=valid_command),
"ignore_past": Option(False, type=valid_bool),
"state_poll": Option(10.0, type=valid_float_f01),
"state_poll": Option(5.0, type=valid_float_f01),
},
"fan": {
"daemon": Option("kvmd-fan", type=valid_stripped_string),