Project

General

Profile

Revision ad931b2e

IDad931b2e6be487772b6b8bb2817a674212c2b46f
Parent c60a37ae
Child 3cd2e62e

Added by Francois POIROTTE about 7 years ago

Correction calcul vitesse max des liens

Change-Id: I6513c596aaef7a123ef0376df7ae058da06f1dce
Reviewed-on: https://vigilo-dev.si.c-s.fr/review/2379
Tested-by: Build system <>
Reviewed-by: Francois POIROTTE <>

View differences:

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