From: <abe...@us...> - 2015-12-24 21:42:06
|
Revision: 7427 http://sourceforge.net/p/astlinux/code/7427 Author: abelbeck Date: 2015-12-24 21:42:04 +0000 (Thu, 24 Dec 2015) Log Message: ----------- web interface, Status tab, Firewall States, change order of 'head' and 'grep' so all of /proc/net/nf_conntrack does not have to be indexed. Can be slightly less overall output but faster for a very large number of states Modified Paths: -------------- branches/1.0/package/webinterface/altweb/common/status.inc Modified: branches/1.0/package/webinterface/altweb/common/status.inc =================================================================== --- branches/1.0/package/webinterface/altweb/common/status.inc 2015-12-24 18:26:57 UTC (rev 7426) +++ branches/1.0/package/webinterface/altweb/common/status.inc 2015-12-24 21:42:04 UTC (rev 7427) @@ -1168,7 +1168,7 @@ if (getPREFdef($global_prefs, 'status_show_firewall_states') === 'yes') { putHtml("<h2>Firewall States:</h2>"); $tmpfile = tempnam("/tmp", "PHP_"); - shell('grep -v "127\.0\.0\.1" '.$CONNTRACK.' | head -n 2500 >'.$tmpfile, $status); + shell('head -n 2500 '.$CONNTRACK.' | grep -v "127\.0\.0\.1" >'.$tmpfile, $status); parseFIREWALLstates($firewall, $tmpfile, 100); if (is_null($firewall)) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |