diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-10-30 00:43:47 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-10-30 00:43:47 +0000 |
commit | b2b7799c42a700ff99c21117b2f325590e290e4e (patch) | |
tree | f53dcacfae995ba7ac167455fc6bbf404d8005a4 /packages/snort/snort.inc | |
parent | a4967ca28ec000ad551f2382f81738de428926c9 (diff) | |
download | pfsense-packages-b2b7799c42a700ff99c21117b2f325590e290e4e.tar.gz pfsense-packages-b2b7799c42a700ff99c21117b2f325590e290e4e.tar.bz2 pfsense-packages-b2b7799c42a700ff99c21117b2f325590e290e4e.zip |
filter out grep from results
Diffstat (limited to 'packages/snort/snort.inc')
-rw-r--r-- | packages/snort/snort.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/snort/snort.inc b/packages/snort/snort.inc index 372ddbe2..6f104fb6 100644 --- a/packages/snort/snort.inc +++ b/packages/snort/snort.inc @@ -116,7 +116,7 @@ function sync_package_snort() { $sample_before = "\nBEFORE_MEM=`top | grep Free | grep Wired | awk '{print \$10}'`\n"; $sample_after = "\nAFTER_MEM=`top | grep Free | grep Wired | awk '{print \$10}'`\n"; $sleep_before_final = "\necho \"Sleeping before final memory sampling...\"\nsleep 17"; - $total_free_after = "\nTOTAL_USAGE=`top | grep snort | awk '{ print \$6 }'`\n"; + $total_free_after = "\nTOTAL_USAGE=`top | grep snort | grep -v grep | awk '{ print \$6 }'`\n"; $echo_usage = "\necho \"Ram free BEFORE starting Snort: \${BEFORE_MEM} -- Ram free AFTER starting Snort: \${AFTER_MEM}\" -- Mode {$snort_performance} -- Snort memory usage: \$TOTAL_USAGE | logger -p daemon.info -i -t SnortStartup\n"; /* write out rc.d start/stop file */ |