mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Unify time interval formatting Use carbon for formatting, it supports locales. * fix style * remove baseline exceptions * fixes found by lint
25 lines
484 B
PHP
25 lines
484 B
PHP
<?php
|
|
|
|
$scale_min = '0';
|
|
$scale_max = '100';
|
|
$float_precision = '3';
|
|
|
|
$rrd_filename = Rrd::name($device['hostname'], ['availability', $vars['duration']]);
|
|
|
|
$ds = 'availability';
|
|
|
|
$colour_line = '000000';
|
|
$colour_area = '8B8BEB44';
|
|
|
|
$colour_area_max = 'cc9999';
|
|
|
|
$line_text = \LibreNMS\Util\Time::formatInterval($vars['duration'], parts: 1);
|
|
|
|
$graph_title .= '::' . $line_text;
|
|
|
|
$graph_max = 1;
|
|
|
|
$unit_text = 'Availability(%)';
|
|
|
|
require 'includes/html/graphs/generic_simplex.inc.php';
|