mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 10:28:13 +00:00
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:
parent
cafdec6285
commit
b9cc630dbc
@ -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'];
|
||||
|
@ -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 ?? '';
|
||||
|
Loading…
Reference in New Issue
Block a user