diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-10-26 21:39:39 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-10-26 21:39:39 +0000 |
commit | 9399ff11ca02564641543544e33e1093abae1d42 (patch) | |
tree | a23ed1ac976b4554404b6f11091c18cdfdb5717b | |
parent | adbc9fa3cbc7eeb15ed9c7d5c3ef804dfaed987e (diff) | |
download | pfsense-packages-9399ff11ca02564641543544e33e1093abae1d42.tar.gz pfsense-packages-9399ff11ca02564641543544e33e1093abae1d42.tar.bz2 pfsense-packages-9399ff11ca02564641543544e33e1093abae1d42.zip |
Woops, this is overall free system memory, not usage.
-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 62dd8008..bd052c21 100644 --- a/packages/snort/snort.inc +++ b/packages/snort/snort.inc @@ -115,7 +115,7 @@ function sync_package_snort() { /* write out rc.d start/stop file */ write_rcfile(array( "file" => "snort.sh", - "start" => "BEFORE_MEM=`top | grep Free | grep Wired | awk '{print \$10}'`\n{$start}\nsleep 17\nAFTER_MEM=`top | grep Free | grep Wired | awk '{print $10}'`\necho \"Ram usage BEFORE starting Snort: \${BEFORE_MEM} -- Ram usage AFTER starting Snort: \${AFTER_MEM}\" -- Mode {$snort_performance} | logger -p daemon.info -i -t SnortStartup", + "start" => "BEFORE_MEM=`top | grep Free | grep Wired | awk '{print \$10}'`\n{$start}\necho \"Sleeping before final memory sampling...\"\nsleep 17\nAFTER_MEM=`top | grep Free | grep Wired | awk '{print $10}'`\necho \"Ram free BEFORE starting Snort: \${BEFORE_MEM} -- Ram free AFTER starting Snort: \${AFTER_MEM}\" -- Mode {$snort_performance} | logger -p daemon.info -i -t SnortStartup", "stop" => "/usr/bin/killall snort; killall snort2c" ) ); |