From 1fd32d784eeb639ba3d86ea82bbedbeecd863b25 Mon Sep 17 00:00:00 2001 From: Someone Date: Wed, 28 Aug 2013 02:48:31 +0200 Subject: [PATCH] changed ircd stats a little --- irccomp | 2 +- ircdch | 2 +- ircdlusers | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/irccomp b/irccomp index f25497c..76d7692 100755 --- a/irccomp +++ b/irccomp @@ -24,7 +24,7 @@ if [ "$1" = "autoconf" ]; then fi if [ "$1" = "config" ]; then - echo "graph_title ircnet comparison" + echo "graph_title An IRC-Net comparison" echo "graph_info This graph compares IRC Networks" echo "graph_category irc" echo "graph_printf %.0lf" diff --git a/ircdch b/ircdch index e8736fd..526ebe5 100755 --- a/ircdch +++ b/ircdch @@ -27,7 +27,7 @@ if [ "$1" = "config" ]; then echo "graph_category irc" echo "graph_printf %.0lf" echo "graph_scale no" - cat /tmp/irc_sno/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 15 + cat /tmp/irc_sno/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 exit 0 fi diff --git a/ircdlusers b/ircdlusers index b79ddb0..14cb49d 100755 --- a/ircdlusers +++ b/ircdlusers @@ -38,5 +38,7 @@ if [ "$1" = "config" ]; then exit 0 fi -cat /tmp/irc_sno/stats.txt +cat /tmp/irc_sno/lusers.txt | grep 'channels formed' | sed -e 's/\(.*\) channels formed/channels.value \1/' +cat /tmp/irc_sno/lusers.txt | grep 'Current Global Users' | sed -e 's/Current Global Users: \(.*\) Max.*$/clients.value \1/' +cat /tmp/irc_sno/lusers.txt | grep 'There are ' | sed -e 's/^.*on \(.*\) servers/servers.value \1/' exit 0 -- 2.43.0