Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
577 B
PHP
Raw Permalink Normal View History

2009-10-27 13:04:16 +00:00
<?php
$scale_min = '0';
2009-11-07 02:30:38 +00:00
2019-04-11 23:26:42 -05:00
require 'includes/html/graphs/common.inc.php';
2012-04-05 16:47:39 +00:00
2021-03-28 17:25:30 -05:00
$rrd_filename = Rrd::name($device['hostname'], 'uptime');
2009-10-27 13:04:16 +00:00
$rrd_options .= ' DEF:uptime=' . $rrd_filename . ':uptime:AVERAGE';
$rrd_options .= ' CDEF:cuptime=uptime,86400,/';
$rrd_options .= " 'COMMENT:Days Current Minimum Maximum Average\\n'";
$rrd_options .= ' AREA:cuptime#00FF0022:Uptime';
$rrd_options .= ' LINE1.25:cuptime#36393D:';
$rrd_options .= ' GPRINT:cuptime:LAST:%6.2lf GPRINT:cuptime:MIN:%6.2lf';
$rrd_options .= " GPRINT:cuptime:MAX:%6.2lf 'GPRINT:cuptime:AVERAGE:%6.2lf\\n'";