changed ircd stats a little
authorSomeone <someone@somenet.org>
Wed, 28 Aug 2013 00:48:31 +0000 (02:48 +0200)
committerJan Vales <jan@jvales.net>
Mon, 18 Jan 2016 19:18:11 +0000 (20:18 +0100)
irccomp
ircdch
ircdlusers

diff --git a/irccomp b/irccomp
index f25497ccbdd34353361c18ff59ac04de3b27a742..76d7692a3a012fbae89bd105adfc3cea078126a4 100755 (executable)
--- 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 e8736fd3afdac7bc11dc8d413d6774c7618380d9..526ebe5badcb52084ed8214efe6d66f3b20af700 100755 (executable)
--- 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
 
index b79ddb0e09063ac842cedb7837098d6272ce5a80..14cb49db3fca09ffbbaad3cd4b8ab168d9342b58 100755 (executable)
@@ -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