Revision ad931b2e
Correction calcul vitesse max des liens
Change-Id: I6513c596aaef7a123ef0376df7ae058da06f1dce
Reviewed-on: https://vigilo-dev.si.c-s.fr/review/2379
Tested-by: Build system <qa@vigilo-dev.si.c-s.fr>
Reviewed-by: Francois POIROTTE <francois.poirotte@c-s.fr>
src/plugins/vigilo/inc/abstractmonitoreditem.class.php | ||
---|---|---|
132 | 132 |
$ethport = $ethport->find('networkports_id=' . $np['id']); |
133 | 133 |
foreach ($ethport as $rowEthPort) { |
134 | 134 |
if ($rowEthPort['speed']) { |
135 |
$test['max'] = $rowEthPort['speed']; |
|
135 |
// La bande passante de l'interface est exprimée |
|
136 |
// en Mbit/s dans GLPI et on la veut en bit/s dans Vigilo. |
|
137 |
$test['max'] = $rowEthPort['speed'] << 20; |
|
136 | 138 |
break; |
137 | 139 |
} |
138 | 140 |
} |
Also available in: Unified diff