You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by je...@apache.org on 2008/09/22 23:20:27 UTC

svn commit: r698003 - /httpd/flood/trunk/examples/analyze-relative

Author: jerenkrantz
Date: Mon Sep 22 14:20:26 2008
New Revision: 698003

URL: http://svn.apache.org/viewvc?rev=698003&view=rev
Log:
* analyze-relative: Update to work with non-Solaris sort's.

Modified:
    httpd/flood/trunk/examples/analyze-relative

Modified: httpd/flood/trunk/examples/analyze-relative
URL: http://svn.apache.org/viewvc/httpd/flood/trunk/examples/analyze-relative?rev=698003&r1=698002&r2=698003&view=diff
==============================================================================
--- httpd/flood/trunk/examples/analyze-relative (original)
+++ httpd/flood/trunk/examples/analyze-relative Mon Sep 22 14:20:26 2008
@@ -19,7 +19,7 @@
     for (i in ht) {
         printf("%.4f\t%.4f\t%.4f\t%.4f\t%d\t%s\n", co[i]/cou[i], wr[i]/cou[i], re[i]/cou[i], cl[i]/cou[i], cou[i], i)
     }
-}' - | sort -rn +3 | head -5
+}' - | sort -rn -k3 | head -5
 #echo "Most frequently hit pages (top 5):"
 #tail +1 $1 | gawk '/OK.*https?/ {
 #    split($8, urlarray, /\?/); url = urlarray[1]; ht[url] = url;