fix allocated_draw for inactive PSU
This commit is contained in:
parent
0e7b61012d
commit
16680438c5
1 changed files with 1 additions and 1 deletions
|
|
@ -117,10 +117,10 @@ class PowerSupply():
|
|||
|
||||
for i, nb_psu in enumerate(nb_psus):
|
||||
nb_psu.allocated_draw = float(psu_cons[i]) * voltage
|
||||
nb_psu.save()
|
||||
if nb_psu.allocated_draw < 1:
|
||||
logging.info('PSU is not connected or in standby mode')
|
||||
continue
|
||||
nb_psu.save()
|
||||
logging.info('Updated power consumption for PSU {}: {}W'.format(
|
||||
nb_psu.name,
|
||||
nb_psu.allocated_draw,
|
||||
|
|
|
|||
Loading…
Add table
editor.link_modal.header
Reference in a new issue