From 5f6b7410cb711fa6226f976e65aebd42049965f8 Mon Sep 17 00:00:00 2001 From: Manuel CISSÉ Date: Mon, 21 Jun 2010 13:49:36 +0200 Subject: Uptime plugin now display current/max/avg values in days instead of seconds --- plugin/uptime.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugin') diff --git a/plugin/uptime.php b/plugin/uptime.php index 4c7db39..0d3d617 100644 --- a/plugin/uptime.php +++ b/plugin/uptime.php @@ -3,24 +3,24 @@ # Collectd Uptime plugin require_once 'conf/common.inc.php'; -require_once 'type/GenericStacked.class.php'; +require_once 'type/Uptime.class.php'; require_once 'inc/collectd.inc.php'; ## LAYOUT # uptime/uptime.rrd -$obj = new Type_GenericStacked($CONFIG); +$obj = new Type_Uptime($CONFIG); $obj->data_sources = array('value'); $obj->ds_names = array( - 'value' => 'seconds', + 'value' => 'Current', ); $obj->colors = array( - 'value' => '0000f0', + 'value' => '00e000', ); $obj->width = $width; $obj->heigth = $heigth; $obj->rrd_title = 'Uptime'; -$obj->rrd_vertical = 'Seconds'; +$obj->rrd_vertical = 'Days'; $obj->rrd_format = '%.1lf'; collectd_flush($obj->identifiers); -- cgit v1.1