You are not logged in.
Pages: 1
Topic closed
Hi,
When I connect a device to a power supply, through dropdown list on rack view, power cables number is incremented but the current power supply is not displayed, dropdown list prints: "----".
regards, and thanks for this excellent plugin.
Offline
Reload page (this is because you have 2 same dropdowns)
Xavier Caillaud
Blog GLPI Infotel
Offline
Hi,
Looking further, it sems that, regardless of the power supply I select, the value of glpi_plugin_rack_content.alim1 is always 127 if I set a power supply, and 0 otherwise. There is no power supply with id 127 in glpi_dropdown_plugin_rack_ways.
Any idea ?
Jean
Offline
screenshots ? i don' understand
Xavier Caillaud
Blog GLPI Infotel
Offline
On the following devices, I set 3 different power supplies, and I have the same value for alim1. For all other devices, I have set no power supply, and the value is 0.
mysql> select * from glpi_plugin_rack_content where alim1=127;
+----+---------+---------+---------+-----------+-------------+----------+-------+-------+--------+-----------+-------------+---------+
| ID | FK_rack | FK_face | FK_spec | FK_device | device_type | position | alim1 | alim2 | amps | flow_rate | dissipation | weight |
+----+---------+---------+---------+-----------+-------------+----------+-------+-------+--------+-----------+-------------+---------+
| 83 | 1 | 1 | 8 | 349 | 1 | 38 | 127 | 0 | 0.0000 | 0.0000 | 0.0000 | 14.1000 |
| 84 | 1 | 1 | 8 | 101 | 1 | 39 | 127 | 0 | 0.0000 | 0.0000 | 0.0000 | 14.1000 |
| 85 | 1 | 1 | 8 | 351 | 1 | 40 | 127 | 0 | 0.0000 | 0.0000 | 0.0000 | 14.1000 |
+----+---------+---------+---------+-----------+-------------+----------+-------+-------+--------+-----------+-------------+---------+
3 rows in set (0.00 sec)
There is no power supply with this id, as you can see:
mysql> select * from glpi_dropdown_plugin_rack_ways where id=127;
Empty set (0.00 sec)
Is it clearer ?
Thank you very much for your help.
Jean
Offline
Hi,
I got it :-)
alim1 and alim2 columns are defined as tinyint, that means values from -127 to 127 which is not enough (I have 240 pwoer supplies). Upgrading the column definition from tinyint to int resolve the problem.
Jean
Offline
Cool. Entre Rennais on aurait pu parler français, ca aurait été plus simple.
Je le corriges pour la prochaine version.
Xavier Caillaud
Blog GLPI Infotel
Offline
Pas en public, tout de même :-)
Offline
J'ai publié une nouvelle version (il y avait un autre bug)
Xavier Caillaud
Blog GLPI Infotel
Offline
Pages: 1
Topic closed