mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Set ping_perf scale_min to 0 (#14989)
And allow scale_min, scale_max, and scale_rigid to be set via url parameter
This commit is contained in:
@@ -104,6 +104,9 @@ class GraphParameters
|
||||
$this->to = empty($vars['to']) ? time() : Time::parseAt($vars['to']);
|
||||
$this->period = $this->to - $this->from;
|
||||
$this->prev_from = $this->from - $this->period;
|
||||
$this->scale_min = $vars['scale_min'] ?? null;
|
||||
$this->scale_max = $vars['scale_max'] ?? null;
|
||||
$this->scale_rigid = isset($vars['scale_rigid']) && $vars['scale_rigid'] && $vars['scale_rigid'] !== 'no';
|
||||
|
||||
$this->inverse = ! empty($vars['inverse']);
|
||||
$this->in = $this->inverse ? 'out' : 'in';
|
||||
|
||||
@@ -16,5 +16,6 @@ $filename = Rrd::name($device['hostname'], 'ping-perf');
|
||||
|
||||
$descr = 'Milliseconds';
|
||||
$ds = 'ping';
|
||||
$scale_min = 0;
|
||||
|
||||
require 'includes/html/graphs/generic_stats.inc.php';
|
||||
|
||||
Reference in New Issue
Block a user