mail[Wesnoth-commits] r28353 - /trunk/utils/campaignd_download_analyze.sh


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by paniemin on August 07, 2008 - 07:43:
Author: suokko
Date: Wed Aug  6 18:58:59 2008
New Revision: 28353

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28353&view=rev
Log:
Script to analyse campaignd server log for trafic numbers

Added:
    trunk/utils/campaignd_download_analyze.sh   (with props)

Added: trunk/utils/campaignd_download_analyze.sh
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/campaignd_download_analyze.sh?rev=28353&view=auto
==============================================================================
--- trunk/utils/campaignd_download_analyze.sh (added)
+++ trunk/utils/campaignd_download_analyze.sh Wed Aug  6 18:58:59 2008
@@ -1,0 +1,3 @@
+#!/bin/sh
+sed -n -e "s/.*campaign list.*[0-9]\( using \(gzip\)\)\? size: 
\([0-9]*\)kb/\3 \2/p" $1 |awk 'BEGIN { sum = 0; count = 0; gzip = 0 } { sum 
+= $1; count ++; if ($2 == "gzip") gzip ++; } END { print "campaign list 
sent: " count " gzipped: " gzip " size: " sum "kb" }'
+sed -n -e "s/.*campaign '.*[0-9]\( using \(gzip\)\)\? size: \([0-9]*\)kb/\3 
\2/p" $1 |awk 'BEGIN { sum = 0; count = 0; gzip = 0 } { sum += $1; count ++; 
if ($2 == "gzip") gzip ++; } END { print "campaigns sent: " count " gzipped: 
" gzip " size: " sum "kb" }'

Propchange: trunk/utils/campaignd_download_analyze.sh
------------------------------------------------------------------------------
    svn:executable = *




Related Messages


Powered by MHonArc, Updated Thu Aug 07 09:00:50 2008