support keys with / in them
authorChristian Grothoff <christian@grothoff.org>
Wed, 9 May 2018 23:07:48 +0000 (01:07 +0200)
committerChristian Grothoff <christian@grothoff.org>
Wed, 9 May 2018 23:07:48 +0000 (01:07 +0200)
contrib/visualize_stats.sh

index 87d8fc6c4cfb69602bef6cf398c798a8b52a93dd..aaa5e657b80b5919711aa83b1b9c499939b6242d 100755 (executable)
@@ -34,7 +34,7 @@ case "$1" in
        NOW=`date +%s`
        RELAT=$[$NOW-$STARTTIME]
        gnunet-statistics | while read KEY VALUE; do
-               
+               KEY=`echo $KEY | tr / .`
                # Collect stats of previous round
                if [ -e "$STATDIR/$KEY.dat" ]; then
                        PREV=`tail --lines=1 "$STATDIR/$KEY.dat" | sed -e "s/.* //g"`