Stacked graphs on zoom to speed (#14928)

* Update generic_data.inc.php

* Update functions.inc.php

* Update generic_data.inc.php

* Update functions.inc.php

* Update functions.inc.php

* Update generic_data.inc.php

* Update graphs.inc.php

* Make Murrant Happy ;)

* Update generic_data.inc.php

* Update generic_data.inc.php

* Update graphs.inc.php

* Update graphs.inc.php
This commit is contained in:
Justin Lentz 2023-04-14 16:48:30 -05:00 committed by GitHub
parent cafdec6285
commit b9cc630dbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -1010,9 +1010,9 @@ function get_oxidized_nodes_list()
* @param string $transparency value of desired transparency applied to rrdtool options (values 01 - 99)
* @return array containing transparency and stacked setup
*/
function generate_stacked_graphs($transparency = '88')
function generate_stacked_graphs($force_stack = false, $transparency = '88')
{
if (Config::get('webui.graph_stacked') == true) {
if (Config::get('webui.graph_stacked') == true || $force_stack == true) {
return ['transparency' => $transparency, 'stacked' => '1'];
} else {
return ['transparency' => '', 'stacked' => '-1'];

View File

@ -18,7 +18,7 @@ use LibreNMS\Util\Number;
require 'includes/html/graphs/common.inc.php';
$stacked = generate_stacked_graphs();
$stacked = generate_stacked_graphs(! empty($port['ifSpeed']) && ($vars['port_speed_zoom'] ?? Config::get('graphs.port_speed_zoom')));
$inverse = $inverse ?? false;
$multiplier = $multiplier ?? false;
$format = $format ?? '';