initial commit; version 22.5.12042
This commit is contained in:
26
html/includes/graphs/device/graph.inc.php
Normal file
26
html/includes/graphs/device/graph.inc.php
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
if (isset($config['sensor_types'][$subtype]))
|
||||
{
|
||||
$class = $subtype;
|
||||
$unit = $config['sensor_types'][$subtype]['symbol'];
|
||||
if ($unit == '%') { $unit = '%%'; }
|
||||
$unit_long = $config['sensor_types'][$subtype]['text'];
|
||||
|
||||
include($config['html_dir']."/includes/graphs/device/sensor.inc.php");
|
||||
} else {
|
||||
// graph_error($type.'_'.$subtype); // Graph Template Missing;
|
||||
}
|
||||
|
||||
// EOL
|
Reference in New Issue
Block a user