mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix graphs showing bps instead of pps (#13266)
* fix issue #13119 try to detect if total_units exists (variable comes from errors.inc.php and nupkts.inc.php ) as 'pps' and define graph units as such. * standardize units_descr for both ucastpackets and errors
This commit is contained in:
@@ -37,7 +37,11 @@ if ($format == 'octets' || $format == 'bytes') {
|
||||
$units = 'Bps';
|
||||
$format = 'bits';
|
||||
} else {
|
||||
$units = 'bps';
|
||||
if (isset($total_units) && $total_units == 'pps') {
|
||||
$units = 'pps';
|
||||
} else {
|
||||
$units = 'bps';
|
||||
}
|
||||
$format = 'bits';
|
||||
}
|
||||
|
||||
|
@@ -19,7 +19,7 @@ $rrd_list[4]['colour_area_in'] = 'FACF5A';
|
||||
$rrd_list[4]['colour_area_out'] = 'FF5959';
|
||||
|
||||
$units = '';
|
||||
$units_descr = 'Packets';
|
||||
$units_descr = 'Packets/sec';
|
||||
$total_units = 'pps';
|
||||
$colours_in = 'purples';
|
||||
$multiplier = '1';
|
||||
|
Reference in New Issue
Block a user