diff options
| author | Potin Lai <potin.lai@quantatw.com> | 2024-12-13 04:55:00 +0300 |
|---|---|---|
| committer | Patrick Williams <patrick@stwcx.xyz> | 2024-12-13 05:43:15 +0300 |
| commit | 80497086bc02676db5894964d8b74929e587b0c0 (patch) | |
| tree | 6aec5bc63da2fe937074023c679918e1ecbd458b /meta-openembedded/meta-python/recipes-devtools/python/python3-google-api-python-client_2.131.0.bb | |
| parent | a595f37517b6fd72fe55f68ca72e455800c82eb4 (diff) | |
| download | openbmc-80497086bc02676db5894964d8b74929e587b0c0.tar.xz | |
meta-facebook: catalina: fix virtual sensor max/min value settings
Virtual sensor only take `MaxValue` and `MinValue` as number, remove the
double quotes around MaxValue and MinValue values for proper numerical
handling in virtual sensor.
Test results:
```
root@bmc:~# mfg-tool sensor-display 2>/dev/null | jq '.VIRTUAL_PDB_P48V_HSC1_CURR_A'
{
"max": 255.0,
"min": 0.0,
"status": "ok",
"unit": "Amperes",
"value": 0.0
}
root@bmc:~# mfg-tool sensor-display 2>/dev/null | jq '.VIRTUAL_PDB_P48V_HSC2_CURR_A'
{
"max": 255.0,
"min": 0.0,
"status": "ok",
"unit": "Amperes",
"value": 0.3275709
}
root@bmc:~# mfg-tool sensor-display 2>/dev/null | jq '.VIRTUAL_PDB_P48V_HSC1_PWR_W'
{
"max": 3000.0,
"min": 0.0,
"status": "ok",
"unit": "Watts",
"value": 0.0
}
root@bmc:~# mfg-tool sensor-display 2>/dev/null | jq '.VIRTUAL_PDB_P48V_HSC2_PWR_W'
{
"max": 3000.0,
"min": 0.0,
"status": "ok",
"unit": "Watts",
"value": 16.494799999999998
}
```
Change-Id: I23952770f135502f3f653d420f2ddf6f02ef0ee7
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Diffstat (limited to 'meta-openembedded/meta-python/recipes-devtools/python/python3-google-api-python-client_2.131.0.bb')
0 files changed, 0 insertions, 0 deletions
