diff options
author | nagyrobi <robreg@zsurob.hu> | 2014-05-28 21:39:57 +0200 |
---|---|---|
committer | nagyrobi <robreg@zsurob.hu> | 2014-05-28 21:39:57 +0200 |
commit | a88376d9c5cfa27bd9211eafae742f6aec490353 (patch) | |
tree | 2da547731b9574948eac04b38b42f3d30c9a914d /etc/inc/rrd.inc | |
parent | 504e5fd46f1c4840666d1f20ecac934c07e16a88 (diff) | |
download | pfsense-a88376d9c5cfa27bd9211eafae742f6aec490353.zip pfsense-a88376d9c5cfa27bd9211eafae742f6aec490353.tar.gz |
Update rrd.inc
fixed NTPd graphs resetting when service restarts or reconfigured (thanks charliem https://forum.pfsense.org/index.php?topic=76620.msg422811#msg422811)
Diffstat (limited to 'etc/inc/rrd.inc')
-rw-r--r-- | etc/inc/rrd.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/rrd.inc b/etc/inc/rrd.inc index 255499e..6e64815 100644 --- a/etc/inc/rrd.inc +++ b/etc/inc/rrd.inc @@ -849,7 +849,7 @@ function enable_rrd_graphing() { /* NTP, set up the ntpd rrd file */ if (isset($config['ntpd']['statsgraph'])) { /* set up the ntpd rrd file */ - if (!file_exists("$rrddbpath$ifname$ntpd")) { + if (!file_exists("$rrddbpath$ntpd")) { $rrdcreate = "$rrdtool create $rrddbpath$ntpd --step $rrdntpdinterval "; $rrdcreate .= "DS:offset:GAUGE:$ntpdvalid:0:1000 "; $rrdcreate .= "DS:sjit:GAUGE:$ntpdvalid:0:1000 "; @@ -876,7 +876,7 @@ function enable_rrd_graphing() { /* enter UNKNOWN values in the RRD so it knows we rebooted. */ if($g['booting']) { - mwexec("$rrdtool update $rrddbpath$ntpd N:U"); + mwexec("$rrdtool update $rrddbpath$ntpd N:U:U:U:U:U:U"); } /* the ntp stats gathering function. */ |