From 5fa28b6d2e5c839e55c69adea09d3bdef85a76cf Mon Sep 17 00:00:00 2001 From: Someone Date: Sat, 5 Oct 2013 14:13:56 +0200 Subject: [PATCH] ircd channels listing now 20 channels. --- ircdch_ | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ircdch_ b/ircdch_ index 8d8f7bd..3beeb6b 100755 --- a/ircdch_ +++ b/ircdch_ @@ -25,14 +25,14 @@ IRCNET=${0##*ircdch_} if [ "$1" = "config" ]; then echo "graph_title ircnet ${IRCNET} channel stats" - echo "graph_info This graph shows the usercounts of the top 15 channels" + echo "graph_info This graph shows the usercounts of the top 20 channels" echo "graph_category irc" echo "graph_printf %.0lf" echo "graph_scale no" - cat "/tmp/irc_${IRCNET}/channels.txt" | grep "#" | sed -E -e 's~#~~g' -e 's~[^a-zA-Z0-9 ]~_~g' | sort -u | sort -k 2nr | awk '{print $1".label "$1"\n"$1".draw LINE2" }' | head -n 30 + cat "/tmp/irc_${IRCNET}/channels.txt" | grep "#" | sed -E -e 's~#~~g' -e 's~[^a-zA-Z0-9 ]~_~g' | sort -u | sort -k 2nr | awk '{print $1".label "$1"\n"$1".draw LINE2" }' | head -n 40 exit 0 fi -cat "/tmp/irc_${IRCNET}/channels.txt" | grep "#" | sed -E -e 's~#~~g' -e 's~[^a-zA-Z0-9 ]~_~g' | sort -u | sort -k 2nr | awk '{print $1".value "$2 }' | head -n 15 +cat "/tmp/irc_${IRCNET}/channels.txt" | grep "#" | sed -E -e 's~#~~g' -e 's~[^a-zA-Z0-9 ]~_~g' | sort -u | sort -k 2nr | awk '{print $1".value "$2 }' | head -n 20 exit 0 -- 2.43.0