summaryrefslogtreecommitdiffstats
path: root/etc/inc/rrd.inc
diff options
context:
space:
mode:
authorthompsa <andy@fud.org.nz>2010-03-12 14:14:15 +1300
committerthompsa <andy@fud.org.nz>2010-03-12 14:14:15 +1300
commit6f76920c94c2299240112b3ce9bd3238b9726989 (patch)
treeffb598e32526596b03d66e67165072256d6a5722 /etc/inc/rrd.inc
parent6661ea2525eb3d43069ad01616f1f905be94029c (diff)
downloadpfsense-6f76920c94c2299240112b3ce9bd3238b9726989.zip
pfsense-6f76920c94c2299240112b3ce9bd3238b9726989.tar.gz
Use pgrep/pkill to save a bit of cpu.
Diffstat (limited to 'etc/inc/rrd.inc')
-rw-r--r--etc/inc/rrd.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/rrd.inc b/etc/inc/rrd.inc
index fa0500f..0bfc8f3 100644
--- a/etc/inc/rrd.inc
+++ b/etc/inc/rrd.inc
@@ -634,7 +634,7 @@ function enable_rrd_graphing() {
}
function kill_traffic_collector() {
- mwexec("ps awwwux | grep '/[u]pdaterrd.sh' | awk '{print $2}' | xargs kill 2>&1");
+ mwexec("/bin/pkill -f '/[u]pdaterrd.sh'");
}
/* This xml 2 array function is courtesy of the php.net comment section on xml_parse.
OpenPOWER on IntegriCloud