Project

General

Profile

Bug #4423 » etc_inc_rrd.inc.patch

Allow for negative values in the offset data source of ntpd.rrd - David Wood, 02/13/2015 05:11 AM

View differences:

/etc/inc/rrd.inc 2015-02-13 09:29:46.000000000 +0000
864 864
			/* set up the ntpd rrd file */
865 865
			if (!file_exists("$rrddbpath$ntpd")) {
866 866
				$rrdcreate = "$rrdtool create $rrddbpath$ntpd --step $rrdntpdinterval ";
867
				$rrdcreate .= "DS:offset:GAUGE:$ntpdvalid:0:1000 ";
867
				$rrdcreate .= "DS:offset:GAUGE:$ntpdvalid:-1000:1000 ";
868 868
				$rrdcreate .= "DS:sjit:GAUGE:$ntpdvalid:0:1000 ";
869 869
				$rrdcreate .= "DS:cjit:GAUGE:$ntpdvalid:0:1000 ";
870 870
				$rrdcreate .= "DS:wander:GAUGE:$ntpdvalid:0:1000 ";
    (1-1/1)